You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hold references to storages during TorchScript serializaiton (pytorch#59672)
Fixes issue for serialization problem caused by using memory address of storages for mobile and torch.package models.
- pytorch#59642 hold references to storages during TorchScript serialization
Uses StorageContext to hold a reference to all storages seen during TorchScript serialization to allow for tensors to be created/destroyed during serialization process. Tracking of the storages solves for the ABA memory problem.
0 commit comments