torch.package — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/package.htmltorch.package¶. torch.package adds support for creating hermetic packages containing arbitrary PyTorch code. These packages can be saved, shared, used to load and execute models at a later date or on a different machine, and can even be deployed to production using torch::deploy. This document contains tutorials, how-to guides, explanations, and an API reference that will help …