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/07/29 22:41:43 UTC
[GitHub] haojin2 commented on issue #11925: mxnet.ndarray.stack : PLEASE
UPDATE DOC
haojin2 commented on issue #11925: mxnet.ndarray.stack : PLEASE UPDATE DOC
URL: https://github.com/apache/incubator-mxnet/issues/11925#issuecomment-408711285
Can you post the exact instructions you used here?
This is what I got:
```
>>> import mxnet as mx
>>> a = mx.nd.array([1,2])
>>> b = mx.nd.array([3,4])
>>> mx.nd.stack(a, b)
[[ 1. 2.]
[ 3. 4.]]
<NDArray 2x2 @cpu(0)>
```
Maybe what you did was:
```
>>> import mxnet as mx
>>> a = [1,2]
>>> b = [3,4]
>>> mx.nd.stack(a, b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 39, in stack
AssertionError: Positional arguments must have NDArray type, but got [1, 2]
```?
----------------------------------------------------------------
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