chinakook opened a new issue #20842:
URL: https://github.com/apache/incubator-mxnet/issues/20842


   ## Description
   Argmax result is wrong on GPU. MXNet version is 2.0 mater.
   
   ## To Reproduce
   ```python
   import mxnet as mx
   a = mx.np.array([[1,2,3]])
   b = a.to_device(mx.gpu(0))
   print("CPU: argmax on axis 0", a.argmax(axis=0))
   print("GPU: argmax on axis 0", b.argmax(axis=0))
   print("CPU: argmax on axis 1", a.argmax(axis=1))
   print("GPU: argmax on axis 1", b.argmax(axis=1))
   ```
   The print result:
   ```
   CPU: argmax on axis 0 [0 0 0]
   GPU: argmax on axis 0 [0 1 2] @gpu(0)
   CPU: argmax on axis 1 [2]
   GPU: argmax on axis 1 [2] @gpu(0)
   ```
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to