KEMBAR78
Implement tensor slice in inductor to stop falling back for aten.index by oulgen · Pull Request #111015 · pytorch/pytorch · GitHub
Skip to content

Conversation

@oulgen
Copy link
Contributor

@oulgen oulgen commented Oct 11, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 11, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/111015

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (3 Unrelated Failures)

As of commit d8b9539 with merge base 144cda7 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@oulgen oulgen requested a review from jansel October 11, 2023 02:03
@oulgen oulgen requested review from Chillee and ezyang October 11, 2023 02:03
@oulgen oulgen added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 11, 2023
@oulgen oulgen changed the title Implement tensor slice in to stop falling back for aten.index Implement tensor slice in inductor to stop falling back for aten.index Oct 11, 2023
…r aten.index"

Fixes #110711

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
…r aten.index"

Fixes #110711

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
@ezyang ezyang removed their request for review October 11, 2023 02:51
@ezyang
Copy link
Contributor

ezyang commented Oct 11, 2023

I'm not terribly familiar with this code but I can page it in if you really need me to.

@oulgen
Copy link
Contributor Author

oulgen commented Oct 11, 2023

@ezyang No worries, @Chillee and I were trying to figure out the right semantics for tensor slicing, wanted some extra eyes to make sure we did not miss an edge case.

…r aten.index"

Fixes #110711

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
@oulgen
Copy link
Contributor Author

oulgen commented Oct 11, 2023



def index_output_size_and_inner_fn(
x_size, indices, valid_idxs, tensor_size, indices_loaders, indexed_size, x_loader
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think valid_idxs is a bit of a bad name. Perhaps "tensor_indices"?

Copy link
Collaborator

Choose a reason for hiding this comment

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

In general I think the mixup of idxs and indices is a bit confusing.

…r aten.index"

Fixes #110711

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
oulgen added a commit that referenced this pull request Oct 11, 2023
@oulgen
Copy link
Contributor Author

oulgen commented Oct 11, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/oulgen/6/head branch November 11, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants