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/08/30 09:22:20 UTC

[GitHub] azshue opened a new issue #12407: 'NDArray' object has no attribute 'broadcast_like'

azshue opened a new issue #12407: 'NDArray' object has no attribute 'broadcast_like'
URL: https://github.com/apache/incubator-mxnet/issues/12407
 
 
   I was trying 'broadcast_like' using the given example in the API docs, like this:
   ```
   import mxnet as mx
   x = mx.nd.arange(0,3).reshape((1,3,1))
   x.asnumpy()
   y = x.broadcast_like(mx.nd.ones((2,3,3)))
   y.asnumpy()
   ```
   , and, in Jupyter Notebook, got an error like:
   ```
   AttributeError                            Traceback (most recent call last)
   <ipython-input-4-cec7b4c13665> in <module>()
         1 x = mx.nd.arange(0,3).reshape((1,3,1))
         2 x.asnumpy()
   ----> 3 y = x.broadcast_like(mx.nd.ones((2,3,3)))
         4 y.asnumpy()
   
   AttributeError: 'NDArray' object has no attribute 'broadcast_like'
   ```
   I am using the latest version(mxnet-1.2.1.post1), and don't know why got an error like this.
   
   Thanks,

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