wkcn commented on issue #10899: ctypes.c_int(ctx.device_id)     TypeError: an 
integer is required
URL: 
https://github.com/apache/incubator-mxnet/issues/10899#issuecomment-389800870
 
 
   MXNet doesn't have any check for ctx.device_id.
   The type of ctx.device_id should be `int`.
   
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/context.py#L47
   
   I think the insightface code passes a namespace to args.gpu, however MXNet 
doesn't check the type of ctx.device_id.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to