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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to