This repository was archived by the owner on Nov 17, 2023. It is now read-only.
AttributeError: module 'mxnet' has no attribute 'mod' #20133
Unanswered
fresh382227905
asked this question in
Q&A
Replies: 6 comments 1 reply
|
thanks for posting. Would you share about you platform, how you installed MXNet, and the script to reproduce the issue? |
0 replies
|
Thanks for your reply.Here are my versions:
Python 3.6
ubuntu 18.04
cuda 11.0
pip 9.0.1
I downloaded the package from https://dist.mxnet.io/python and I chose this version, i.e mxnet_cu110-2.0.0b20210123-py3-none-manylinux2014_x86_64.whl. I used this command: pip3 install mxnet_cu110-2.0.0b20210123-py3-none-manylinux2014_x86_64.whl, It didn't work. Then I Entered my shell, type python3 ;import pip
and I changed the name as
mxnet_cu110-2.0.0b20210123-py3-none-any.whl
It worked, and the version of mxnet is 2.0.0
However, when I run the codes, An error occured, i.e has no attribute mod.module
Looking forward to your reply.
…------------------ 原始邮件 ------------------
发件人: "Zhaoqi ***@***.***>;
发送时间: 2021年4月7日(星期三) 下午2:37
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/incubator-mxnet] AttributeError: module 'mxnet' has no attribute 'mod' (#20133)
thanks for posting. Would you share about you platform, how you installed MXNet, and the script to reproduce the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
0 replies
|
By the way, my graphics card is GeForce RTX 3070. driver's version is 460
…------------------ 原始邮件 ------------------
发件人: "Zhaoqi ***@***.***>;
发送时间: 2021年4月7日(星期三) 下午2:37
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/incubator-mxnet] AttributeError: module 'mxnet' has no attribute 'mod' (#20133)
thanks for posting. Would you share about you platform, how you installed MXNet, and the script to reproduce the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
0 replies
|
So you were able to pip install the whl file? Then the error message showed up when you import mxnet? |
0 replies
|
I changed the name of my package's name. It can be installed successfuly. when I import mxnet, it works well.However when I use model = mx.mod.Module(symbol=sym, context=ctx, label_names = None), an error occured.
AttributeError: module 'mxnet' has no attribute 'mod'
My mxnet version is 2.0.0
…------------------ 原始邮件 ------------------
发件人: "Zhaoqi ***@***.***>;
发送时间: 2021年4月7日(星期三) 下午2:58
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/incubator-mxnet] AttributeError: module 'mxnet' has no attribute 'mod' (#20133)
So you were able to pip install the whl file? Then the error message showed up when you import mxnet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
1 reply
|
Thanks.It does work. I should have upgraded my pip version. then I can install mxnet directly by using command '' pip3 install mxnet-cu110==1.8.0 -i HTTPS://mirrors.aliyun.com/pypi/simple/ ''
that error has been solved, however another error occured,MXNetError: Check failed: compileResult == NVRTC_SUCCESS (5 vs. 0) : NVRTC Compilation failed. Please set environment variable MXNET_USE_FUSION to 0.
nvrtc: error: invalid value for --gpu-architecture (-arch)
I'm going to solve it.
Thanks
…------------------ 原始邮件 ------------------
发件人: "Zhaoqi ***@***.***>;
发送时间: 2021年4月7日(星期三) 下午3:29
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/incubator-mxnet] AttributeError: module 'mxnet' has no attribute 'mod' (#20133)
I think this is because 2.0 has deprecated the Module api. You might try 1.x releases instead. 1.8 wheels should be available through pip install https://pypi.org/project/mxnet/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
3070显卡,cuda 11.0 mxnet 2.0.0
出现AttributeError: module 'mxnet' has no attribute 'mod'
请问怎么解决呢
All reactions