Skip to content

Conversation

@razarmehr
Copy link
Collaborator

This patch adds support for creating torch.Generator for MPS device, and enables its functions such as manual_seed, get_state, and set_state.
Fixes #84288 and #84516

…kend (#131)

This patch will will add support for creating torch.Generator for MPS device,
and enables its functions such as manual_seed, get_state, and set_state.
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 23, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 09f0a5e:

NEW FAILURES - The following jobs have failed:

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 Dec 23, 2022
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Sounds good. Only small things

@bdhirsh bdhirsh added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Dec 27, 2022
@razarmehr razarmehr requested a review from albanD December 29, 2022 16:30
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

SGTM

@razarmehr
Copy link
Collaborator Author

@pytorchbot merge -f "Other failures are unrelated"

@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

@razarmehr razarmehr deleted the MPSGenerator branch January 3, 2023 16:48
razarmehr added a commit to kulinseth/pytorch that referenced this pull request Jan 3, 2023
…#91348)

This patch adds support for creating torch.Generator for MPS device, and enables its functions such as manual_seed, get_state, and set_state.
Fixes pytorch#84288 and pytorch#84516
Pull Request resolved: pytorch#91348
Approved by: https://github.com/malfet, https://github.com/albanD
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Feb 6, 2023
…#91348)

This patch adds support for creating torch.Generator for MPS device, and enables its functions such as manual_seed, get_state, and set_state.
Fixes pytorch#84288 and pytorch#84516
Pull Request resolved: pytorch#91348
Approved by: https://github.com/malfet, https://github.com/albanD
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 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.

MPS: torch.manual_seed not working on metal (mps) for torch.randn

6 participants