You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/07 01:37:49 UTC

[GitHub] [incubator-mxnet] gyshi opened a new issue #15478: compute in GPU , astype('int32') overflow problem

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:
users@infra.apache.org


With regards,
Apache Git Services