-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Warn when there is side effect in strict mode #160060
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/160060
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 72327d4 with merge base f33ce40 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: 302456107
|
This pull request was exported from Phabricator. Differential Revision: D79784354 |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: 302460184
|
This pull request was exported from Phabricator. Differential Revision: D79784354 |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: 302472385
|
This pull request was exported from Phabricator. Differential Revision: D79784354 |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: 70717d9
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: 302716194
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!
| UserWarning, | ||
| "While exporting, we found certain side effects happened in the model.forward. " | ||
| "Here are the list of potential sources you can double check: " | ||
| "\[\"L\['global_list'\]\", \"L\['self'\].bank\", \"L\['self'\].bank_dict\"", |
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.
On actual UX, we'd need more user education on how to interpret this (or we spit out the information with a friendlier format). For reference, it took me some time to fully understand this notation when I was ramping up
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) [ghstack-poisoned]
Pull Request resolved: #160060 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @imported-using-ghimport Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354/) ghstack-source-id: cede38a
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
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 |
Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) Pull Request resolved: pytorch#160060 Approved by: https://github.com/zhxchen17, https://github.com/StrongerXi
Differential Revision: [D79784354](https://our.internmc.facebook.com/intern/diff/D79784354) Pull Request resolved: pytorch#160060 Approved by: https://github.com/zhxchen17, https://github.com/StrongerXi
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela
Differential Revision: D79784354