Roshrini commented on issue #13332: MXNet Python inference crash when copy from 
CPU to GPU
URL: 
https://github.com/apache/incubator-mxnet/issues/13332#issuecomment-486449710
 
 
   @lanking520 The image must be changed to float32 type for gpu context. You 
need to cast img to float. If you change the script as follows, the code will 
work fine:
   
   data_iter = mx.io.NDArrayIter([img.astype('float32')], None, 1)
   

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


With regards,
Apache Git Services

Reply via email to