Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Numpy unique repeat indices large tensor checks#19382

Merged
Zha0q1 merged 11 commits intoapache:masterfrom
Zha0q1:numpy_unique_repeat_indices
Dec 3, 2020
Merged

Numpy unique repeat indices large tensor checks#19382
Zha0q1 merged 11 commits intoapache:masterfrom
Zha0q1:numpy_unique_repeat_indices

Conversation

@Zha0q1
Copy link
Copy Markdown
Contributor

@Zha0q1 Zha0q1 commented Oct 19, 2020

This pr adds large tensor checks to numpy unique, indices, and repeat. Those ops are running very slowly on large tensors (>20mins) so we might just block such use cases. If in the future there is a valid LT use case we will need to consider optimize the performance and remove those size checks

@mxnet-bot
Copy link
Copy Markdown

Hey @Zha0q1 , 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: [website, unix-cpu, sanity, windows-cpu, edge, clang, windows-gpu, unix-gpu, miscellaneous, centos-cpu, centos-gpu]


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.

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress labels Oct 19, 2020
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 20, 2020
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Dec 1, 2020
<< "_npi_indices dimensions the number of dim must not be less than 0";
mxnet::TShape param_dim = param.dimensions;
if (!shape_is_known(param_dim)) return false;
CHECK_LT(param_dim.Size(), INT32_MAX) << "ValueError: np.indices does not support large"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change the message to “does not support input(s) containing elements >=2^31”

@Zha0q1 Zha0q1 closed this Dec 1, 2020
@Zha0q1 Zha0q1 reopened this Dec 1, 2020
@lanking520 lanking520 removed the pr-work-in-progress PR is still work in progress label Dec 1, 2020
@lanking520 lanking520 added the pr-awaiting-testing PR is reviewed and waiting CI build and test label Dec 1, 2020
Copy link
Copy Markdown
Contributor

@access2rohit access2rohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lanking520 lanking520 added pr-work-in-progress PR is still work in progress and removed pr-awaiting-testing PR is reviewed and waiting CI build and test labels Dec 1, 2020
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-review PR is waiting for code review and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Dec 2, 2020
@Zha0q1 Zha0q1 merged commit 619eab2 into apache:master Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

pr-awaiting-review PR is waiting for code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants