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 2020/08/29 01:37:36 UTC

[GitHub] [incubator-mxnet] szha edited a comment on issue #19030: Stacking 0-order tensors

szha edited a comment on issue #19030:
URL: https://github.com/apache/incubator-mxnet/issues/19030#issuecomment-683214754


   ok so the reason it failed is that our NDArray didn't support 0-order tensors.  we made an extension to the NDArray shape semantics to make it numpy-compatible as part of the numpy compatibility change. There's a switch to enable this extension of shape semantics:
   ```
   import mxnet as mx
   mx.npx.set_np()
   l = [mx.nd.array(v) for v in [1, 2, 3, 4]]
   mx.nd.stack(*l, axis=0)
   ```


----------------------------------------------------------------
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