[GitHub] [incubator-mxnet] tuanzhangCS commented on issue #16110: ndarray treated uint8 as signed value

2019-10-16 Thread GitBox
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')

[GitHub] [incubator-mxnet] tuanzhangCS commented on issue #16110: ndarray treated uint8 as signed value

2019-10-16 Thread GitBox
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.