mozga-intel commented on pull request #20419: URL: https://github.com/apache/incubator-mxnet/pull/20419#issuecomment-876294537
> ## Question > I also have a question regarding the axes parameter in numpy and ndarray transpose. Numpy axes supports negative indices in the axes parameter, so one can for example use: > > ``` > x = mx.np.arange(20).reshape(2,5,2) > y = mx.np.transpose(x, axes=(-3,-2,-1) > ``` > > and it will work fine, but giving the same axes parameter to ndarray transpose is not supported, so for example: > > ``` > x = mx.nd.arange(20).reshape(2,5,2) > y = mx.nd.transpose(x, axes=(-3,-2,-1)) > ``` > > ends with an error. > > should support for negative indices be added to ndarray transpose? I think that mx.nd.transpose(x, axes=(-3,-2,-1)) should be valid, as it is in numpy. @szha What do you think about that? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
