mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

ModuleNotFoundError: No module named 'mxnet.contrib.amp'

Open Mukulareddy opened this issue 5 years ago • 5 comments

Description

(A clear and concise description of what the bug is.)

Error Message

(Paste the complete error message. Please also include stack trace by setting environment variable DMLC_LOG_STACK_TRACE_DEPTH=10 before running your script.)

To Reproduce

(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)

Steps to reproduce

(Paste the commands you ran that produced the error.)

What have you tried to solve it?

Environment

We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:

curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

Mukulareddy avatar Mar 26 '20 11:03 Mukulareddy

What is the version of MXNet you are using?

ptrendx avatar Mar 26 '20 21:03 ptrendx

Seems to be an issue when running an mxnet/python:1.4.0_cpu_py3 docker image.

Dragas avatar Jul 18 '20 07:07 Dragas

AMP was introduced in MXNet 1.5. Could you try that version (or newer)?

ptrendx avatar Jul 18 '20 15:07 ptrendx

I have the same problem - ModuleNotFoundError: No module named 'mxnet.contrib.amp'. Version MXNet is 2.0.0.

Radiushina avatar Jul 19 '23 07:07 Radiushina

In 2.0 AMP is not in contrib anymore - you should use mxnet.amp instead.

ptrendx avatar Jul 19 '23 18:07 ptrendx