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

[BE] Fix TORCH_WARN_ONCE #95559

Closed
wants to merge 1 commit into from
Closed

[BE] Fix TORCH_WARN_ONCE #95559

wants to merge 1 commit into from

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Feb 25, 2023

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

It does not take a condition as first argument, unlike `TORCH_CHECK`
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 25, 2023

🔗 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 SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

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

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

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Feb 25, 2023
@malfet malfet added the topic: bug fixes topic category label Feb 25, 2023
@malfet
Copy link
Contributor Author

malfet commented Feb 25, 2023

@pytorchbot merge -f "MPS tests are green"

@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

@malfet malfet deleted the malfet/mps-fix-warn-once branch February 26, 2023 00:24
@kulinseth
Copy link
Collaborator

Yeah, it should be opposite.

Copy link
Collaborator

@kulinseth kulinseth left a 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.

@kulinseth
Copy link
Collaborator

Thanks for the fix.

@malfet can this be cherry-picked to release 2.0? It will create spurious warnings

@malfet malfet added this to the 2.0.0 milestone Feb 28, 2023
malfet added a commit that referenced this pull request Mar 1, 2023
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)
atalman pushed a commit that referenced this pull request Mar 2, 2023
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)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
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
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request May 3, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/mps Run MPS tests (subset of trunk) Merged release notes: mps Release notes category topic: bug fixes topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants