-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Fix STOPITERATION_ERROR opcode #146494
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 STOPITERATION_ERROR opcode #146494
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/146494
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 2 Unrelated FailuresAs of commit ba99230 with merge base 9da376d ( NEW FAILURE - The following job has failed:
UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
assert isinstance(inst, ExceptionVariable) | ||
if inst.exc_type is StopIteration: | ||
exc.raise_observed_exception(RuntimeError, self) | ||
tos = self.stack[-1] |
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.
Nit: Prefer to pop
and then push the new exception into the stack.
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.
Add test please
ghstack-source-id: 4412fbc Pull Request resolved: pytorch/pytorch#146494
Closing as this one was fixed in a different PR. |
Stack from ghstack (oldest at bottom):
UserDefinedExceptionClassVariable
#146504__context/cause/suppress_context/traceback__
to Exception #146499sys.exc_info
andsys.exception
#146498AttributeError
to user code in user_defined.py #146497is
/is not
#146496RAISE_VARARGS 0
#146493WITH_EXCEPT_START
opcode #146492make_dynamo_test
#146491cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames