sxjscience commented on issue #12268: Inconsistent type conversion from numpy.ndarray to mx.ndarray URL: https://github.com/apache/incubator-mxnet/issues/12268#issuecomment-551207085 This issue is solved by the new Numpy NDArray in MXNet: ```python import mxnet as mx import numpy as np mx.npx.set_np() dat_np_to_mx = mx.np.array(np.arange(10, dtype=np.int32)) dat_mx_to_mx =mx.np.array(mx.np.arange(10, dtype=np.int32)) print(dat_np_to_mx.dtype, dat_mx_to_mx.dtype) ``` ```log int32 int32 ```
---------------------------------------------------------------- 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
