You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/25 02:54:11 UTC
[GitHub] Godricly opened a new issue #7606: Slicing mx.nd.array with postive start and neg end alone same axis
Godricly opened a new issue #7606: Slicing mx.nd.array with postive start and neg end alone same axis
URL: https://github.com/apache/incubator-mxnet/issues/7606
Current mx.nd.array does not support slicing with positive start end negative end alone same axis while numpy can do it.
```python
import os
import sys
import numpy as np
import mxnet as mx
A = np.asarray([i for i in range(16)])
A = A.reshape((4,4))
B = mx.nd.array(A)
print A[1:-1] #ok
print B[1,:-1] #ok
print B[1:-1] #wrong
A[1:-1] = 0
print A #ok
B[1:-1] = 0
print B #wrong
```
----------------------------------------------------------------
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