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/01/06 12:05:53 UTC
[GitHub] [incubator-mxnet] xidulu opened a new issue #17223: [Numpy]
np.broadcast_to does not support scalar as input
xidulu opened a new issue #17223: [Numpy] np.broadcast_to does not support scalar as input
URL: https://github.com/apache/incubator-mxnet/issues/17223
## Description
As title
```python
>>> import numpy as onp
>>> onp.broadcast_to(1.0, (2,2))
array([[1., 1.],
[1., 1.]])
>>> from mxnet import np, npx
>>> npx.set_np()
>>> np.broadcast_to(1.0, (2,2))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 25, in broadcast_to
AssertionError: Argument array must have NDArray type, but got 1.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
With regards,
Apache Git Services
[GitHub] [incubator-mxnet] haojin2 closed issue #17223: [Numpy]
np.broadcast_to does not support scalar as input
Posted by GitBox <gi...@apache.org>.
haojin2 closed issue #17223: [Numpy] np.broadcast_to does not support scalar as input
URL: https://github.com/apache/incubator-mxnet/issues/17223
----------------------------------------------------------------
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
[GitHub] [incubator-mxnet] haojin2 commented on issue #17223: [Numpy]
np.broadcast_to does not support scalar as input
Posted by GitBox <gi...@apache.org>.
haojin2 commented on issue #17223: [Numpy] np.broadcast_to does not support scalar as input
URL: https://github.com/apache/incubator-mxnet/issues/17223#issuecomment-572249899
PR merged, closing
----------------------------------------------------------------
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