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

[MPS] Add pow.Scalar #95201

Closed
wants to merge 6 commits into from
Closed

[MPS] Add pow.Scalar #95201

wants to merge 6 commits into from

Conversation

qqaatw
Copy link
Collaborator

@qqaatw qqaatw commented Feb 21, 2023

  1. Adds pow.Scalar.
  2. Modifies testing atol and rtol to get pow output match tests pass.
  3. Xfails numerically incorrect dtypes.

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 21, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3858a8a:
💚 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 21, 2023
Comment on lines -9835 to +10151
elif (op.name in self.FP16_LOW_PRECISION_LIST) and dtype == torch.float16:
elif op.name in self.FP16_LOW_PRECISION_LIST and dtype == torch.float16:
atol = 1e-2
rtol = 1e-2
elif (op.name == "masked.mean"):
elif op.name == "masked.mean":
atol = 7e-4
rtol = 2e-3
elif (op.name == "native_layer_norm"):
elif op.name == "native_layer_norm":
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Make them more pythonic and consistent

@bdhirsh bdhirsh added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Feb 22, 2023
@qqaatw
Copy link
Collaborator Author

qqaatw commented Feb 24, 2023

@pytorchbot label "accept2run"

@pytorch-bot pytorch-bot bot added ciflow/trunk Trigger trunk jobs on your pull request and removed accept2run labels Feb 27, 2023
@qqaatw qqaatw force-pushed the add_pow_scalar_mm branch 3 times, most recently from 6c50dfa to 66e2cc2 Compare February 28, 2023 10:11
@qqaatw
Copy link
Collaborator Author

qqaatw commented Feb 28, 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

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 2, 2023
1. Adds `pow.Scalar`.
2. Modifies testing `atol` and `rtol` to get pow output match tests pass.
3. Xfails numerically incorrect dtypes.
Pull Request resolved: pytorch/pytorch#95201
Approved by: https://github.com/kulinseth
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
1. Adds `pow.Scalar`.
2. Modifies testing `atol` and `rtol` to get pow output match tests pass.
3. Xfails numerically incorrect dtypes.
Pull Request resolved: pytorch/pytorch#95201
Approved by: https://github.com/kulinseth
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
1. Adds `pow.Scalar`.
2. Modifies testing `atol` and `rtol` to get pow output match tests pass.
3. Xfails numerically incorrect dtypes.
Pull Request resolved: pytorch/pytorch#95201
Approved by: https://github.com/kulinseth
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
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) ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: mps Release notes category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants