pytorch
0c8f4b58 - Update Module.__setattr__ to respect property setters (#92044)

Commit
1 year ago
Update Module.__setattr__ to respect property setters (#92044) Fixes #52664. Checks if the attribute is a property that defines a setter and uses fset in __setattr__ rather than registering an inaccessible module / parameter. This is BC-breaking as the attribute setters on nn.Module properties used to be ignored and now will be called properly. Pull Request resolved: https://github.com/pytorch/pytorch/pull/92044 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading