tuanzhangCS commented on issue #16110: ndarray treated uint8 as signed value
URL:
https://github.com/apache/incubator-mxnet/issues/16110#issuecomment-542976704
Hi @dwSun , I think maybe it's not a bug.
Because the type of arr2 is uint8, and the data type of arr2.sum() is also
uint8. So,
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