You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
when initializing a ndarray, the data type of official Numpy array will be casted to the input data type. DeepNumpy will set the default data type to be float32 unless the dtype parameter is explicitly declared.
>>> import numpy as onp
>>> from mxnet import numpy as np
>>> a = np.array([1, 2, 3, 4, 5])
>>> a
array([1., 2., 3., 4., 5.])
>>> a.dtype
dtype('float32')
>>> oa = onp.array([1, 2, 3, 4, 5])
>>> oa
array([1, 2, 3, 4, 5])
>>> oa.dtype
dtype('int64')
when indexing a 1-d array, the return type of numpy array is a value, while the return type of deenumpy array is still a deenumpy array.
Description
Two consistencies with official Numpy