Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pt2] add meta for argsort.stable, use sort samples in OpInfo #106025

Closed
wants to merge 2 commits into from

Conversation

nkaretnikov
Copy link
Collaborator

@nkaretnikov nkaretnikov commented Jul 26, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Jul 26, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4264518:
💚 Looks good so far! There are no failures yet. 💚

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

@nkaretnikov
Copy link
Collaborator Author

From the list in #105105

@@ -3739,6 +3739,7 @@ def test_vmap_exhaustive(self, device, dtype, op):
# but found at least two devices, cuda:0 and cpu!
xfail('ge', device_type='cuda'),
xfail('_upsample_bilinear2d_aa'),
xfail('argsort'), # aten::argsort.stable hit the vmap fallback which is currently disabled
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OpInfo now tests with the stable kwarg, so this got uncovered.

@@ -18269,7 +18265,7 @@ def reference_flatten(input, start_dim=0, end_dim=-1):
"argsort",
dtypes=all_types_and(torch.bool, torch.float16, torch.bfloat16),
dtypesIfCUDA=all_types_and(torch.float16, torch.bfloat16),
sample_inputs_func=sample_inputs_argsort,
sample_inputs_func=sample_inputs_sort,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

argsort is the second value returned by torch.sort(). Same API as sort, not sure why samples weren't reused before.

torch.argsort(input, dim=- 1, descending=False, stable=False) → Tensor
   torch.sort(input, dim=- 1, descending=False, stable=False, *, out=None)

Note: on the aten side, stable has no default:

func: argsort.stable(Tensor self, *, bool stable, int dim=-1, bool descending=False) -> Tensor

@nkaretnikov nkaretnikov marked this pull request as ready for review July 26, 2023 11:49
@nkaretnikov nkaretnikov requested a review from ezyang July 26, 2023 11:49
@nkaretnikov
Copy link
Collaborator Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/nkaretnikov/157/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/106025)

pytorchmergebot pushed a commit that referenced this pull request Jul 26, 2023
ghstack-source-id: b914535c290c967fe81bb7bf111858bb54d193c3
Pull Request resolved: #106025
@ezyang
Copy link
Contributor

ezyang commented Jul 26, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 26, 2023
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR needs a release notes: label
If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Details for Dev Infra team Raised by workflow job

@ezyang ezyang added the topic: not user facing topic category label Jul 26, 2023
@ezyang
Copy link
Contributor

ezyang commented Jul 26, 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

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled. If you believe this is a mistake,then you can re trigger it through pytorch-bot.

@ezyang
Copy link
Contributor

ezyang commented Jul 27, 2023

@pytorchbot merge -f "looks ok"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

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/nkaretnikov/157/head branch July 30, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants