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

Fix ignored_states when they are passed as generators #102575

Closed
wants to merge 1 commit into from

Conversation

zhaojuanmao
Copy link
Contributor

@zhaojuanmao zhaojuanmao commented May 30, 2023

This PR fixed the case where ignored_states are passed as generators, not List/Set

Stack from ghstack (oldest at bottom):

@pytorch-bot
Copy link

pytorch-bot bot commented May 30, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit e0dcac8:
💚 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 the release notes: distributed (fsdp) release notes category label May 30, 2023
zhaojuanmao added a commit that referenced this pull request May 30, 2023
ghstack-source-id: c496dd352b7ffa287313229d44719f800a092cec
Pull Request resolved: #102575
@zhaojuanmao zhaojuanmao changed the title add more check for ignored_states Fix ignored_states when they are passed as generators May 30, 2023
Copy link
Contributor

@awgu awgu left a comment

Choose a reason for hiding this comment

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

This changes makes sense to me, but I am wondering what was the edge case that motivated this?

Ah, generators. That makes sense.

@awgu awgu added the ciflow/trunk Trigger trunk jobs on your pull request label May 31, 2023
@zhaojuanmao
Copy link
Contributor Author

@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

atalman pushed a commit to atalman/pytorch that referenced this pull request May 31, 2023
This PR fixed the case where ignored_states are passed as generators, not List/Set

Pull Request resolved: pytorch#102575
Approved by: https://github.com/awgu
shaoyf42 pushed a commit to shaoyf42/pytorch that referenced this pull request Jun 1, 2023
This PR fixed the case where ignored_states are passed as generators, not List/Set

Pull Request resolved: pytorch#102575
Approved by: https://github.com/awgu
alimoezzi pushed a commit to alimoezzi/pytorch that referenced this pull request Jun 3, 2023
This PR fixed the case where ignored_states are passed as generators, not List/Set

Pull Request resolved: pytorch#102575
Approved by: https://github.com/awgu
@facebook-github-bot facebook-github-bot deleted the gh/zhaojuanmao/99/head branch June 8, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (fsdp) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants