trunk/44d02ec4b8120a357ada18a52c5a015279c67f43: fix sdp pickling (#200977)
- PyTorch: 2345 events in the last 90 days
- PyTorch: 2315th Release in the last 90 days
- Previous: earlier the same day · trunk/56fddb47abe0586ac4c1ce88040a9a44ef30b815: [TokenSwitch] Specify the backend contract and test it in CI (#198963)
What happened
SDPBackend is renamed from torch._C._SDPBackend, but only module and name were updated, so pickle looks up the old qualname (torch.nn.attention._SDPBackend), which doesn't exist, and fails (cloudpickle raises cannot pickle 'pybind11_static_property'). This sets qualname = "SDPBackend" Pull Request resolved: #200977 Approved by: https://github.com/pytorchgreenlight , https://github.com/tianyu-l
Summary assembled by rule from the sources below