/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/serialization
NameSizeModeActions
callstack_debug_info_serialization.h26240644editdlrm
export.h98390644editdlrm
import.h33500644editdlrm
import_export_constants.h6700644editdlrm
import_export_functions.h4060644editdlrm
import_export_helpers.h7090644editdlrm
import_legacy.h4960644editdlrm
import_read.h7830644editdlrm
import_source.h33420644editdlrm
onnx.h2290644editdlrm
pickle.h30870644editdlrm
pickler.h85880644editdlrm
python_print.h11800644editdlrm
source_range_serialization.h11980644editdlrm
source_range_serialization_impl.h6850644editdlrm
storage_context.h24840644editdlrm
type_name_uniquer.h7790644editdlrm
unpickler.h64340644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/serialization/import.h (3350B)
#pragma once #include #include #include #include #include #include namespace caffe2 { namespace serialize { class ReadAdapterInterface; } // namespace serialize } // namespace caffe2 namespace torch { namespace jit { TORCH_API Module import_ir_module( std::shared_ptr cu, const std::string& filename, c10::optional device = c10::nullopt); TORCH_API Module import_ir_module( std::shared_ptr cu, std::istream& in, c10::optional device = c10::nullopt); TORCH_API Module import_ir_module( std::shared_ptr cu, std::unique_ptr rai, c10::optional device = c10::nullopt); TORCH_API Module import_ir_module( std::shared_ptr cu, const std::string& filename, c10::optional device, ExtraFilesMap& extra_files); // For reading unified serialization format from torch.Package TORCH_API Module import_ir_module( std::shared_ptr cu, std::shared_ptr reader, std::shared_ptr storage_context, c10::optional device, std::string ts_id /* torchscript identifier inside package */); TORCH_API Module import_ir_module( std::shared_ptr cu, std::istream& in, c10::optional device, ExtraFilesMap& extra_files); TORCH_API Module import_ir_module( std::shared_ptr cu, std::unique_ptr rai, c10::optional device, ExtraFilesMap& extra_files); /// Loads a serialized `Module` from the given `istream`. /// /// The istream must contain a serialized `Module`, exported via /// `torch::jit::ExportModule` in C++. TORCH_API Module load(std::istream& in, c10::optional device = c10::nullopt); TORCH_API Module load( std::istream& in, c10::optional device, ExtraFilesMap& extra_files); /// 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++. TORCH_API Module load( const std::string& filename, c10::optional device = c10::nullopt); TORCH_API Module load( const std::string& filename, c10::optional device, ExtraFilesMap& extra_files); /// Loads a serialized `Module` from the given shared_ptr `rai`. /// /// The reader adapter, which is for customized input stream, must contain a /// serialized `Module`, exported either via `ScriptModule.save()` in /// Python or `torch::jit::ExportModule` in C++. TORCH_API Module load( std::shared_ptr rai, c10::optional device = c10::nullopt); TORCH_API Module load( std::shared_ptr rai, c10::optional device, ExtraFilesMap& extra_files); } // namespace jit } // namespace torch