Shortcuts

Function torch::jit::load(const std::string&, c10::optional<c10::Device>, bool)

Function Documentation

Module torch::jit::load(const std::string &filename, c10::optional<c10::Device> device = c10::nullopt, bool load_debug_files = true)

Loads a serialized Module from the given filename.

The file stored at the location given in filename must contain a serialized Module, exported either via ScriptModule.save() in Python or torch::jit::ExportModule in C++.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources