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 2021/08/17 08:32:56 UTC

[GitHub] [incubator-mxnet] mozga-intel opened a new pull request #20532: Enable other axes support: the take test

mozga-intel opened a new pull request #20532:
URL: https://github.com/apache/incubator-mxnet/pull/20532


   ## Description ##
   There is an axis param that is set up in a loop: [loop] Loop control variable 'axis' not used within the loop body but it's only used out of the loop scope: [loop](https://github.com/apache/incubator-mxnet/blob/master/tests/python/unittest/test_operator.py#L4183)
   ```python
       for axis in range(-data_ndim, data_ndim):
           data_shape = ()
           for _ in range(data_ndim):
               data_shape += (np.random.randint(low=1, high=5), )
           idx_shape = ()
           for _ in range(idx_ndim):
               idx_shape += (np.random.randint(low=1, high=5), )
        ....
       
       result = mx.sym.take(a=data, indices=idx, axis=axis, mode=mode)
   ```
   The axis is always equal to `data_ndim- 1`.  Following the documentation [doc](https://mxnet.apache.org/versions/1.6/api/r/docs/api/mx.nd.take.html), the axis of an input array is to be taken. For the input tensor of rank r, it could be in the range of [-r, r-1]. Where r = data_ndim;
   
   ## Checklist ##
   ### Essentials ###
   - [ ] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
   - [ ] Changes are complete (i.e. I finished coding on this PR)
   - [ ] All changes have test coverage
   - [ ] Code is well-documented
   
   ### Changes ###
   - [ ] Feature1, tests, (and when applicable, API doc)
   - [ ] Feature2, tests, (and when applicable, API doc)
   
   ## Comments ##
   - If this change is a backward incompatible change, why must this change be made.
   - Interesting edge cases to note here
   


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] akarbown merged pull request #20532: Enable other axes support: the take test

Posted by GitBox <gi...@apache.org>.
akarbown merged pull request #20532:
URL: https://github.com/apache/incubator-mxnet/pull/20532


   


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20532: Enable other axes support: the take test

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20532:
URL: https://github.com/apache/incubator-mxnet/pull/20532#issuecomment-900103001


   Hey @mozga-intel , Thanks for submitting the PR 
   All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands: 
   - To trigger all jobs: @mxnet-bot run ci [all] 
   - To trigger specific jobs: @mxnet-bot run ci [job1, job2] 
   *** 
   **CI supported jobs**: [windows-cpu, unix-cpu, edge, unix-gpu, miscellaneous, clang, windows-gpu, website, centos-gpu, sanity, centos-cpu]
   *** 
   _Note_: 
    Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin. 
   All CI tests must pass before the PR can be merged. 
   


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org