trunk/44d02ec4b8120a357ada18a52c5a015279c67f43: fix sdp pickling (#200977)
- PyTorch 近 90 天出现 2348 次
- PyTorch 近 90 天第 2318 次发版
- 上一次:同一天稍早 · trunk/56fddb47abe0586ac4c1ce88040a9a44ef30b815: [TokenSwitch] Specify the backend contract and test it in CI (#198963)
发生了什么
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
摘要按规则整理自下方来源原文