-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[BE] Fix TORCH_WARN_ONCE #95559
[BE] Fix TORCH_WARN_ONCE #95559
Conversation
It does not take a condition as first argument, unlike `TORCH_CHECK`
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/95559
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 28719a3: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot merge -f "MPS tests are green" |
Merge startedYour 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 |
Yeah, it should be opposite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix.
@malfet can this be cherry-picked to release 2.0? It will create spurious warnings |
It does not take a condition as first argument, unlike `TORCH_CHECK` Test plan, run: ` python3 -c "import torch;print(torch.arange(1., 10.,device='mps').view(3, 3).trace())"` and observe no warning Pull Request resolved: #95559 Approved by: https://github.com/Skylion007 (cherry picked from commit 9bca9df)
It does not take a condition as first argument, unlike `TORCH_CHECK` Test plan, run: ` python3 -c "import torch;print(torch.arange(1., 10.,device='mps').view(3, 3).trace())"` and observe no warning Pull Request resolved: #95559 Approved by: https://github.com/Skylion007 (cherry picked from commit 9bca9df)
It does not take a condition as first argument, unlike `TORCH_CHECK` Test plan, run: ` python3 -c "import torch;print(torch.arange(1., 10.,device='mps').view(3, 3).trace())"` and observe no warning Pull Request resolved: pytorch/pytorch#95559 Approved by: https://github.com/Skylion007
This reverts commit 9bca9df.
It does not take a condition as first argument, unlike `TORCH_CHECK` Test plan, run: ` python3 -c "import torch;print(torch.arange(1., 10.,device='mps').view(3, 3).trace())"` and observe no warning Pull Request resolved: pytorch#95559 Approved by: https://github.com/Skylion007 (cherry picked from commit 9bca9df)
It does not take a condition as first argument, unlike
TORCH_CHECK
Test plan, run:
python3 -c "import torch;print(torch.arange(1., 10.,device='mps').view(3, 3).trace())"
and observe no warning