gyshi opened a new issue #15478: compute in GPU , astype('int32') overflow
problem
URL: https://github.com/apache/incubator-mxnet/issues/15478
this is in cpu
>>> np.logspace(12.22,3.44,4, base = 33,).astype('int32')
array([-2147483648, -2147483648, -2147483648, 167373], dtype=int32)
this in gpu.
>>> np.logspace(12.22,3.44,4, base = 33,ctx=npx.gpu(0)).astype('int32')
array([2147483647, 2147483647, 2147483647, 167373], dtype=int32,
ctx=gpu(0))
>>> (-np.logspace(12.22,3.44,4, base = 33,ctx=npx.gpu(0))).astype('int32')
array([-2147483648, -2147483648, -2147483648, -167373], dtype=int32,
ctx=gpu(0))
the result is difference in cpu and gpu computation.
----------------------------------------------------------------
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