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 2019/09/03 15:48:56 UTC
[GitHub] [incubator-mxnet] sxjscience edited a comment on issue #16054:
[Bug] Error initialization with gluon when using mx.set_np_shape(True)
sxjscience edited a comment on issue #16054: [Bug] Error initialization with gluon when using mx.set_np_shape(True)
URL: https://github.com/apache/incubator-mxnet/issues/16054#issuecomment-527518917
@VoVAllen Correct my previous comment. The following code still raises the error:
```python
import mxnet as mx
mx.set_np_shape(True)
mx.gluon.nn.Conv2D(2, 2) # Throw Error
```
We have to use
```python
import mxnet as mx
from mxnet import npx
npx.set_np()
mx.gluon.nn.Conv2D(2, 2) # Run without error
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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