aseyboldt commented on issue #8133: Infer_shape_partial for rank 0 arrays
URL: 
https://github.com/apache/incubator-mxnet/issues/8133#issuecomment-333958354
 
 
   That explains a lot :-)
   
   However `ndarray` does allow scalars:
   ```python
   >>> a = mx.nd.ones(())
   >>> a.shape
   ()
   >>> a.size
   1
   >>> a.asnumpy()
   array(1.0, dtype=float32)
   >>> mx.nd.ones((1,)).asnumpy()
   array([ 1.], dtype=float32)
   ```
   This seems to lead to the invalid memory access in the example above (which 
by the way I think is a serious bug).
   
   I feel bad about criticising someone else's project after using it for only 
a couple of days, but I have to admit it is pretty much beyond me why you would 
design a tensor library without the concept of a scalar. :sweat_smile: 
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to