mxnet2之后将 mxnet.metric 迁移到 mxnet.gluon.metric 了
>>> import mxnet as mx
>>> print(mx.metric)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'mxnet' has no attribute 'metric'
>>> print(mx.gluon.metric)
<module 'mxnet.gluon.metric' from '/home/sophia/anaconda3/lib/python3.8/site-packages/mxnet-2.0.0-py3.8.egg/mxnet/gluon/metric.py'>