-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'list' object has no attribute 'asnumpy' #35
Comments
我换成mxnet-cu100==1.4.0解决了这个问题,但是又有个新的问题 Traceback (most recent call last): Stack trace returned 10 entries: |
您好!感谢您的工作,我正在尝试您的代码。请问AttributeError: 'list' object has no attribute 'asnumpy'的问题该怎么解决?我用的是mxnet-cu100==1.7.0。请问您当初用的是哪个版本的?mxnet的版本不同似乎会造成非常多的问题。
Traceback (most recent call last):
File "main_4n0_3layer_12T_res.py", line 27, in
net = construct_model(config)
File "/work/users/s/h/shuaishu/Transformer/STFGNN/utils_4n0_3layer_12T_res.py", line 41, in construct_model
init=mx.init.Constant(value=adj_mx.tolist()))
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37/lib/python3.7/site-packages/mxnet/symbol/symbol.py", line 2864, in var
init = init.dumps()
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37/lib/python3.7/site-packages/mxnet/initializer.py", line 477, in dumps
self._kwargs['value'] = val.tolist() if isinstance(val, np.ndarray) else val.asnumpy().tolist()
AttributeError: 'list' object has no attribute 'asnumpy'
The text was updated successfully, but these errors were encountered: