-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Propagate AttributeError
to user code in user_defined.py
#146497
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
Propagate AttributeError
to user code in user_defined.py
#146497
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/146497
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a88b7a8 with merge base fd8ae1a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -183,7 +183,7 @@ def var_getattr(self, tx: "InstructionTranslator", name: str) -> "VariableTracke | |||
try: | |||
obj = inspect.getattr_static(self.value, name) | |||
except AttributeError: | |||
obj = None | |||
raise_observed_exception(AttributeError, tx) |
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.
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.
Might need to check for metaclass __getattr__
@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 |
Merge failedReason: 1 jobs have failed, first few of them are: inductor / unit-test / linux-jammy-cpu-py3.9-gcc11-inductor / test (inductor_amx, 2, 2, linux.8xlarge.amx) Details for Dev Infra teamRaised by workflow job |
@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 |
ghstack-source-id: 52c6428 Pull Request resolved: pytorch/pytorch#146497
ghstack-source-id: 0d52914 Pull Request resolved: pytorch/pytorch#146497
Pull Request resolved: #146497 Approved by: https://github.com/anijain2305, https://github.com/zou3519 ghstack dependencies: #146496
…46497) Pull Request resolved: pytorch#146497 Approved by: https://github.com/anijain2305, https://github.com/zou3519 ghstack dependencies: pytorch#146496
Stack from ghstack (oldest at bottom):
__context/cause/suppress_context/traceback__
to Exception #146499UserDefinedExceptionClassVariable
#146504AttributeError
to user code in user_defined.py #146497is
/is not
#146496cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames