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/03/07 08:13:11 UTC

[GitHub] reminisce opened a new pull request #10022: Fix ndarray assignment issue with basic indexing

reminisce opened a new pull request #10022: Fix ndarray assignment issue with basic indexing
URL: https://github.com/apache/incubator-mxnet/pull/10022
 
 
   The following code would throw exception before this fix because the value was not broadcast to the right shape .
   ```python
   data = mx.nd.ones((2, 2))  # data.shape = (2, 2)
   value = mx.nd.array([3])  # value.shape = (1,)
   data[:] = value  # the value should be broadcast to shape (2, 2) first and then call copyto(data)
   ```

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