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 2018/09/26 17:52:21 UTC
[GitHub] arogozhnikov opened a new issue #12672: Ndarray construction can't
convert zero-dimensional numpy arrays
arogozhnikov opened a new issue #12672: Ndarray construction can't convert zero-dimensional numpy arrays
URL: https://github.com/apache/incubator-mxnet/issues/12672
## Description
See example below
## Environment info (Required)
Ubuntu 18, python 3.6, pip-installed CPU-only version
MXNet 1.3.0
## Minimum reproducible example
```python
mxnet.ndarray.array( numpy.arange(1).reshape([1, 1, 1]) ) # ok
mxnet.ndarray.array( numpy.arange(1).reshape([1, 1]) ) # ok
mxnet.ndarray.array( numpy.arange(1).reshape([1]) ) # ok
mxnet.ndarray.array( numpy.arange(1).reshape([]) )
# last one fails: ValueError: Shape inconsistent: expected () vs got (1,)
```
MXNet does support zero-dimensional arrays, so this is the problem of importing.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services