0

I have the following versions of mxnet==1.4.0 and gluonnlp==0.9.1 installed using pip.

However when I run the following codeimport gluonnlp as nlp it yields the following error

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

So I try to manually import the missing module using

from mxnet.contrib import amp
import gluonnlp as nlp

which also yields an error

ImportError: cannot import name 'amp' from 'mxnet.contrib' (/usr/local/lib/python3.7/dist-packages/mxnet/contrib/__init__.py)

I've been running the code on Colab. Is there a possible workaround for this issue?

Please Advise.

The Singularity
  • 2,428
  • 3
  • 19
  • 48

1 Answers1

0

I have not used these libraries but in this github issue they say:

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

So I think that the problem is there.

Cheers!

Pietro
  • 1,090
  • 2
  • 9
  • 15