KEMBAR78
Testing: Unblock `new_*` testing on MPS by malfet · Pull Request #137003 · pytorch/pytorch · GitHub
Skip to content

Conversation

By changing `other_dtype` to `torch.half` rather than `double` in
`sample_inputs_new_fns` if MPS is available

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 30, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit e8f1603 with merge base 156ca01 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

error_regex='margin_ranking_loss : All input tensors should')

def sample_inputs_new_fns(self, device, dtype, requires_grad, *, is_strided=False, **kwargs):
other_dtype = torch.half if torch.backends.mps.is_available() else torch.double
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a better variable we can use to probe for float64 support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, not really. Or at least I can't think of any. Also, this test perhaps should be further extended to pick different dtype if input dtype is torch.double/torch.half

By changing `other_dtype` to `torch.half` rather than `double` in
`sample_inputs_new_fns` if MPS is available

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Sep 30, 2024
Test like `new_*` and `empty_*` fail the current implementation, see
Pull Request resolved: #137004
Approved by: https://github.com/Skylion007
ghstack dependencies: #136981, #136982, #136983, #136984, #136985, #136986, #137003
AnantGulati pushed a commit to AnantGulati/pytorch that referenced this pull request Oct 2, 2024
By changing `other_dtype` to `torch.half` rather than `double` in
`sample_inputs_new_fns` if MPS is available
Pull Request resolved: pytorch#137003
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#136981, pytorch#136982, pytorch#136983, pytorch#136984, pytorch#136985, pytorch#136986
AnantGulati pushed a commit to AnantGulati/pytorch that referenced this pull request Oct 2, 2024
Test like `new_*` and `empty_*` fail the current implementation, see
Pull Request resolved: pytorch#137004
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#136981, pytorch#136982, pytorch#136983, pytorch#136984, pytorch#136985, pytorch#136986, pytorch#137003
@github-actions github-actions bot deleted the gh/malfet/27/head branch November 3, 2024 02:13
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 topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants