Rate this Page

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

Function Documentation#

Module torch::jit::load(std::istream &in, std::optional<c10::Device> device = std::nullopt, bool load_debug_files = true)#

Loads a serialized Module from the given istream.

The istream must contain a serialized Module, exported via torch::jit::ExportModule in C++.