haojin2 edited a comment 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:
[email protected]


With regards,
Apache Git Services

Reply via email to