benchmark
a2b6092c - Fix handling of setattr with some tensor attributes (#149791)

Commit
274 days ago
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: https://github.com/pytorch/pytorch/pull/149791 Approved by: https://github.com/mlazos ghstack dependencies: #149481 Reviewed By: yangw-dev Differential Revision: D71844103 fbshipit-source-id: 01afafc2b1332541477f6779597cecbda5918448
Author
Parents
Loading