(cls, cdata)
| 41 | |
| 42 | @classmethod |
| 43 | def from_weakref(cls, cdata): |
| 44 | instance = cls.__new__(cls) |
| 45 | instance.cdata = cdata |
| 46 | instance._free_weak_ref = torch.Storage._free_weak_ref # type: ignore[attr-defined] |
| 47 | return instance |
| 48 | |
| 49 | def expired(self): |
| 50 | return torch.Storage._expired(self.cdata) # type: ignore[attr-defined] |
nothing calls this directly
no outgoing calls
no test coverage detected