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 2017/11/30 09:10:32 UTC

[GitHub] kobenaxie opened a new issue #8886: Bug in mx.nd.NDArray.reshape ~

kobenaxie opened a new issue #8886: Bug in mx.nd.NDArray.reshape ~
URL: https://github.com/apache/incubator-mxnet/issues/8886
 
 
   version:0.12.1
   ```
   In [1]: import mxnet as mx
   
   In [2]: a = mx.nd.arange(12).reshape((3,4))
   
   In [3]: a.reshape((3,3))
   Out[3]: 
   
   [[ 0.  1.  2.]
    [ 3.  4.  5.]
    [ 6.  7.  8.]]
   <NDArray 3x3 @cpu(0)>
   
   ```
   or 
   ```
   In [2]: a = mx.nd.arange(12).reshape((3,3))
   
   In [3]: a
   Out[3]: 
   
   [[ 0.  1.  2.]
    [ 3.  4.  5.]
    [ 6.  7.  8.]]
   <NDArray 3x3 @cpu(0)>
   
   ```
   `mx.nd.reshape()` has no this bug, when using `mx.nd.reshape(a, shape=(3,3))`, it will raise error .
   

----------------------------------------------------------------
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