tuanzhangCS commented on issue #16110: ndarray treated uint8 as signed value
URL: 
https://github.com/apache/incubator-mxnet/issues/16110#issuecomment-542979694
 
 
   And you can try this case, it return correct result.
   ```
   import mxnet as mx
   arr = mx.nd.ones((2, 2), dtype='uint8')
   arr[0][0] = 200
   print(arr)
   print(arr.mean(), arr.sum())
   print(arr.asnumpy().mean(), arr.asnumpy().sum())
   ```

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


With regards,
Apache Git Services

Reply via email to