-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(optim): use has_complex shortcut flag for all applicable optimizers, use _view_as_real auxiliary function
#110706
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
feat(optim): use has_complex shortcut flag for all applicable optimizers, use _view_as_real auxiliary function
#110706
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/110706
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 3733443 with merge base 3db0095 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
lezcano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This looks much cleaner, thank you.
In the future, you may want to consider using https://github.com/ezyang/ghstack to stack related PRs
yep just gotta get used to it 😛 |
|
@pytorchbot merge |
Merge startedYour 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 |
has_complex shortcut flag, use _view_as_real auxiliary functionhas_complex shortcut flag for all applicable optimizers, use _view_as_real auxiliary function
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-12-py3-arm64 / test (default, 1, 3, macos-m1-12) Details for Dev Infra teamRaised by workflow job |
|
the failures are real |
|
Yes, I'm diagnosing them now (they are a dynamo bug for unpacking const tuple from |
|
I'm going to revive this and merge, except for adagrad, which depends on #110709 Will ship an adagrad one after we merge that. |
|
@pytorchbot merge |
Merge startedYour 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 |
…0709) blocks: #110706 Causes a bug for all optimizers that use _init_group return value. `compile` + _init_group ret value is not on testing path. So we also add test. Pull Request resolved: #110709 Approved by: https://github.com/ezyang
Follow up to #110706, it was missed as depended on another fix Pull Request resolved: #112722 Approved by: https://github.com/albanD
…izers, use `_view_as_real` auxiliary function (pytorch#110706) Follow up to: pytorch#110607 CC: @lezcano @janeyx99 Pull Request resolved: pytorch#110706 Approved by: https://github.com/lezcano
…orch#110709) blocks: pytorch#110706 Causes a bug for all optimizers that use _init_group return value. `compile` + _init_group ret value is not on testing path. So we also add test. Pull Request resolved: pytorch#110709 Approved by: https://github.com/ezyang
Follow up to pytorch#110706, it was missed as depended on another fix Pull Request resolved: pytorch#112722 Approved by: https://github.com/albanD
…izers, use `_view_as_real` auxiliary function (pytorch#110706) Follow up to: pytorch#110607 CC: @lezcano @janeyx99 Pull Request resolved: pytorch#110706 Approved by: https://github.com/lezcano
…orch#110709) blocks: pytorch#110706 Causes a bug for all optimizers that use _init_group return value. `compile` + _init_group ret value is not on testing path. So we also add test. Pull Request resolved: pytorch#110709 Approved by: https://github.com/ezyang
Follow up to pytorch#110706, it was missed as depended on another fix Pull Request resolved: pytorch#112722 Approved by: https://github.com/albanD
Follow up to: #110607
CC: @lezcano @janeyx99