barry-jin commented on issue #20442: URL: https://github.com/apache/incubator-mxnet/issues/20442#issuecomment-877856959
Hi @EnricoMi , after #20262 being merged, MXNet2.0 will switch to use Gluon2.0 API and deprecate all the use of legacy NDArrays and ndarray/symbol operators in Gluon Blocks/Layers. In your case, you can just change `x = mx.nd.ones((5, 4, 10, 10))` to `x = mx.np.ones((5, 4, 10, 10))` because in current Gluon2.0, only mxnet.numpy arrays are allowed. For more detailed information, you can follow the migration guide [here](https://hackmd.io/@BarryJin/ryjIgg-2_). -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
