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/01 03:38:49 UTC

[GitHub] [incubator-mxnet] reminisce edited a comment on issue #16054: [Bug] Error initialization with gluon when using mx.set_np_shape(True)

reminisce 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-526883049
 
 
   @VoVAllen Could you try the following? It works for me with the latest master branch. `mx.set_np_shape` was requested by DGL folks and is not an official user-facing API. If you want to enable numpy-like mode completely, please use `npx.set_np()`. Please know that numpy-like functionality is still under active development and there are still many places in Gluon to be converted in the following months. Thanks.
   ```python
    import mxnet as mx
    from mxnet import npx
    npx.set_np()
    
    mx.gluon.nn.Conv2D(2, 2) # Throw 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