lanking520 commented on issue #12425: Problem with Symbol.reshape and special 
value -2  [scala]
URL: 
https://github.com/apache/incubator-mxnet/issues/12425#issuecomment-418594881
 
 
   @mdespriee the reason that caused the diff from Scala to Python is that 
Python has a set of convenient methods that allows NDArray object called a 
function on it own. They used the different backend APIs. In such case, the 
following code in Python would reproduce the same result with Scala:
   ```
   import mxnet as mx
   a = mx.nd.array([[1,2],[3,4]])
   b = mx.nd.reshape(a, (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