3 #include <torch/csrc/jit/ir.h> 4 #include <torch/csrc/jit/script/module.h> 10 class ReadAdapterInterface;
17 static script::ExtraFilesMap default_extra_files;
19 TORCH_API
void import_ir_module(
20 script::ModuleLookup module_lookup,
21 const std::string& filename,
23 script::ExtraFilesMap& extra_files = default_extra_files);
25 TORCH_API
void import_ir_module(
26 script::ModuleLookup module_lookup,
29 script::ExtraFilesMap& extra_files = default_extra_files);
31 TORCH_API
void import_ir_module(
32 script::ModuleLookup module_lookup,
33 std::unique_ptr<caffe2::serialize::ReadAdapterInterface> rai,
35 script::ExtraFilesMap& extra_files = default_extra_files);
41 TORCH_API std::shared_ptr<script::Module> load(
44 script::ExtraFilesMap& extra_files = default_extra_files);
51 TORCH_API std::shared_ptr<script::Module> load(
52 const std::string& filename,
54 script::ExtraFilesMap& extra_files = default_extra_files);
61 TORCH_API std::shared_ptr<script::Module> load(
62 std::unique_ptr<caffe2::serialize::ReadAdapterInterface> rai,
64 script::ExtraFilesMap& extra_files = default_extra_files);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...