I'm starting to study mxnet and gluon, but I'm getting somewhat confused about the usage of np/nd arrays.
As suggested on the gluon website, I installed mxnet and gluon by running:
pip install --upgrade mxnet gluoncv
which installs mxnet version 1.5.1.post0. In this case, to use arrays I need:
from mxnet import ndarray as nd
On the other hand, I found a deep learning book based on mxnet, where they have you install a later mxnet version by:
pip install mxnet==1.6.0b20190915
and in this case, you can either import ndarray or directly np, so:
from mxnet import ndarray as nd from mxnet import np
both work (while, with mxnet 1.5.1, from mxnet import np fails).
Why is it possible to import np in the new version, if we had nd already? Are there any differences between arrays created from nd or np?
It seems that I can use mxnet features (such as attach_grad()) in both cases...for example, the following works:
from mxnet import np
array = np.array([1,2,3)
array.attach_grad()
Thanks!