You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/02 22:27:17 UTC
[GitHub] leo-gan opened a new issue #9284: error on the print(net.weight)
leo-gan opened a new issue #9284: error on the print(net.weight)
URL: https://github.com/apache/incubator-mxnet/issues/9284
Hi,
I'm executing the http://localhost:8888/notebooks/mxnet/chapter02_supervised-learning/linear-regression-gluon.ipynb example.
`print(net.weight)` - returns
`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-22-f0e92cfa80b4> in <module>()
----> 1 print(net.weight)
2 print(net.bias)
...\lib\site-packages\mxnet\gluon\parameter.py in __repr__(self)
118 def __repr__(self):
119 s = 'Parameter {name} (shape={shape}, dtype={dtype})'
--> 120 return s.format(**self.__dict__)
121
122 @property
KeyError: 'shape'`
It is the
> mxnet-cu80 (1.0.0)
OS: Windows 10
Python 3.5
A similar error on this line:
`print(net.bias)`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services