You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix handling of setattr with some tensor attributes (#149791)
Summary:
We weren't handling `setattr(tensor_obj, "real", 42)` correctly, because
the attribute is a `GetSetDescriptorType` that has special setter logic.
See added test and comments for more explanations.
This patch makes it so that we graph break in those cases, rather than
resulting in silent incorrectness.
X-link: pytorch/pytorch#149791
Approved by: https://github.com/mlazos
ghstack dependencies: #149481
Reviewed By: yangw-dev
Differential Revision: D71844103
fbshipit-source-id: 01afafc2b1332541477f6779597cecbda5918448
0 commit comments