We have many serialization formats and they’re all different and easy to mix up. We’re working on ways to fix the UX here but for now:


torch.save() in eager mode Python lets you save models so they can be loaded in Python

torch::save() in the C++ API lets you save models so they can be loaded in C++ with torch::load()


torch.jit.save() in eager mode Python lets you save models that have been compiled with TorchScript so they can be loaded in Python with torch.jit.load() and in C++ with torch::jit::load()