René's URL Explorer Experiment


Title: Archives — PyTorch main documentation

Description: Serialization archives in PyTorch C++ — InputArchive and OutputArchive for model serialization.

Keywords:

direct link

Domain: docs.pytorch.org


Hey, it has json ld scripts:
    {
       "@context": "https://schema.org",
       "@type": "Article",
       "name": "Archives",
       "headline": "Archives",
       "description": "Serialization archives in PyTorch C++ \u2014 InputArchive and OutputArchive for model serialization.",
       "url": "/api/serialize/archives.html",
       "articleBody": "Archives# Archives provide a lower-level interface for serialization, allowing you to save multiple values to a single file with named keys. OutputArchive# class OutputArchive# Public Functions explicit OutputArchive(std::shared_ptr\u003cjit::CompilationUnit\u003e cu)# inline explicit OutputArchive()# OutputArchive(OutputArchive\u0026\u0026) = default# OutputArchive \u0026operator=(OutputArchive\u0026\u0026) = default# OutputArchive(OutputArchive\u0026) = delete# OutputArchive \u0026operator=(OutputArchive\u0026) = delete# inline std::shared_ptr\u003cjit::CompilationUnit\u003e compilation_unit() const# void write(const std::string \u0026key, const c10::IValue \u0026ivalue)# Writes an IValue to the OutputArchive. void write(const std::string \u0026key, const Tensor \u0026tensor, bool is_buffer = false)# Writes a (key, tensor) pair to the OutputArchive, and marks it as being or not being a buffer (non-differentiable tensor). void write(const std::string \u0026key, OutputArchive \u0026nested_archive)# Writes a nested OutputArchive under the given key to this OutputArchive. void save_to(const std::string \u0026filename)# Saves the OutputArchive into a serialized representation in a file at filename. void save_to(std::ostream \u0026stream)# Saves the OutputArchive into a serialized representation into the given stream. void save_to(const std::function\u003csize_t(const void*, size_t)\u003e \u0026func)# Saves the OutputArchive into a serialized representation using the given writer function. template\u003ctypename ...Ts\u003einline void operator()(Ts\u0026\u0026... ts)# Forwards all arguments to write(). Useful for generic code that can be reused for both OutputArchive and InputArchive (where operator() forwards to read()). Example: torch::serialize::OutputArchive archive; archive.write(\"tensor1\", tensor1); archive.write(\"tensor2\", tensor2); archive.save_to(\"multi_tensor.pt\"); InputArchive# class InputArchive# A recursive representation of tensors that can be deserialized from a file or stream. In most cases, users should not have to interact with this class, and should instead use torch::load. Public Functions InputArchive()# Default-constructs the InputArchive. InputArchive(InputArchive\u0026\u0026) = default# InputArchive \u0026operator=(InputArchive\u0026\u0026) = default# InputArchive(InputArchive\u0026) = delete# InputArchive \u0026operator=(InputArchive\u0026) = delete# ~InputArchive() = default# void read(const std::string \u0026key, c10::IValue \u0026ivalue)# Reads an IValue associated with a given key. bool try_read(const std::string \u0026key, c10::IValue \u0026ivalue)# Reads an IValue associated with a given key. If there is no IValue associated with the key, this returns false, otherwise it returns true. bool try_read(const std::string \u0026key, Tensor \u0026tensor, bool is_buffer = false)# Reads a tensor associated with a given key. If there is no tensor associated with the key, this returns false, otherwise it returns true. If the tensor is expected to be a buffer (not differentiable), is_buffer must be true. void read(const std::string \u0026key, Tensor \u0026tensor, bool is_buffer = false)# Reads a tensor associated with a given key. If the tensor is expected to be a buffer (not differentiable), is_buffer must be true. bool try_read(const std::string \u0026key, InputArchive \u0026archive)# Reads a InputArchive associated with a given key. If there is no InputArchive associated with the key, this returns false, otherwise it returns true. void read(const std::string \u0026key, InputArchive \u0026archive)# Reads an InputArchive associated with a given key. The archive can thereafter be used for further deserialization of the nested data. void load_from(const std::string \u0026filename, std::optional\u003ctorch::Device\u003e device = std::nullopt)# Loads the InputArchive from a serialized representation stored in the file at filename. Storage are remapped using device option. If device is not specified, the module is loaded to the original device. void load_from(std::istream \u0026stream, std::optional\u003ctorch::Device\u003e device = std::nullopt)# Loads the InputArchive from a serialized representation stored in the given stream. Storage are remapped using device option. If device is not specified, the module is loaded to the original device. void load_from(const char *data, size_t size, std::optional\u003ctorch::Device\u003e device = std::nullopt)# void load_from(const std::function\u003csize_t(uint64_t pos, void *buf, size_t nbytes)\u003e \u0026read_func, const std::function\u003csize_t(void)\u003e \u0026size_func, std::optional\u003ctorch::Device\u003e device = std::nullopt)# std::vector\u003cstd::string\u003e keys()# template\u003ctypename ...Ts\u003einline void operator()(Ts\u0026\u0026... ts)# Forwards all arguments to read(). Useful for generic code that can be reused for both InputArchive and OutputArchive (where operator() forwards to write()). Example: torch::serialize::InputArchive archive; archive.load_from(\"multi_tensor.pt\"); torch::Tensor tensor1, tensor2; archive.read(\"tensor1\", tensor1); archive.read(\"tensor2\", tensor2); Saving Multiple Values# Archives are useful when you need to save multiple related values together: // Save multiple tensors and metadata torch::serialize::OutputArchive out_archive; out_archive.write(\"weights\", model_weights); out_archive.write(\"biases\", model_biases); out_archive.write(\"epoch\", torch::tensor(current_epoch)); out_archive.write(\"loss\", torch::tensor(best_loss)); out_archive.save_to(\"training_state.pt\"); // Load them back torch::serialize::InputArchive in_archive; in_archive.load_from(\"training_state.pt\"); torch::Tensor weights, biases, epoch_tensor, loss_tensor; in_archive.read(\"weights\", weights); in_archive.read(\"biases\", biases); in_archive.read(\"epoch\", epoch_tensor); in_archive.read(\"loss\", loss_tensor); int epoch = epoch_tensor.item\u003cint\u003e(); float loss = loss_tensor.item\u003cfloat\u003e();",
       "author": {
         "@type": "Organization",
         "name": "PyTorch Contributors",
         "url": "https://pytorch.org"
       },
       "image": "https://pytorch.org/docs/stable/_static/img/pytorch_seo.png",
       "mainEntityOfPage": {
         "@type": "WebPage",
         "@id": "/api/serialize/archives.html"
       },
       "datePublished": "2023-01-01T00:00:00Z",
       "dateModified": "2023-01-01T00:00:00Z"
     }
 

docsearch:languageen
llm:site-typedocumentation
llm:frameworkPyTorch
llm:descriptionSerialization archives in PyTorch C++ — InputArchive and OutputArchive for model serialization.
llm:navigation-filehttps://pytorch.org/docs/stable/llms.txt
llm:sitemaphttps://pytorch.org/docs/stable/sitemap.xml
llm:versionmain
llm:projectPyTorch
llm:page-typedocumentation
og:imagehttps://docs.pytorch.org/docs/stable/_static/img/pytorch_seo.png
None3

Links:

Skip to main contenthttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#main-content
Home https://docs.pytorch.org/cppdocs/index.html
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
ATen: Tensor Libraryhttps://docs.pytorch.org/cppdocs/api/aten/index.html
Tensor Classhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html
Tensor Creationhttps://docs.pytorch.org/cppdocs/api/aten/creation.html
Tensor Indexinghttps://docs.pytorch.org/cppdocs/api/aten/indexing.html
Tensor Accessorshttps://docs.pytorch.org/cppdocs/api/aten/accessors.html
C10: Core Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/index.html
Device and DeviceTypehttps://docs.pytorch.org/cppdocs/api/c10/device.html
Device Guardshttps://docs.pytorch.org/cppdocs/api/c10/guards.html
Streamshttps://docs.pytorch.org/cppdocs/api/c10/streams.html
Core Typeshttps://docs.pytorch.org/cppdocs/api/c10/types.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/utilities.html
Autograd: Automatic Differentiationhttps://docs.pytorch.org/cppdocs/api/autograd/index.html
Gradient Computationhttps://docs.pytorch.org/cppdocs/api/autograd/gradient.html
Custom Autograd Functionshttps://docs.pytorch.org/cppdocs/api/autograd/custom_functions.html
Gradient Modeshttps://docs.pytorch.org/cppdocs/api/autograd/modes.html
CUDA Supporthttps://docs.pytorch.org/cppdocs/api/cuda/index.html
CUDA Streamshttps://docs.pytorch.org/cppdocs/api/cuda/streams.html
CUDA Guardshttps://docs.pytorch.org/cppdocs/api/cuda/guards.html
CUDA Utility Functionshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html
XPU Supporthttps://docs.pytorch.org/cppdocs/api/xpu/index.html
XPU Streamshttps://docs.pytorch.org/cppdocs/api/xpu/streams.html
XPU Utility Functionshttps://docs.pytorch.org/cppdocs/api/xpu/utilities.html
Neural Network Modules (torch::nn)https://docs.pytorch.org/cppdocs/api/nn/index.html
Containershttps://docs.pytorch.org/cppdocs/api/nn/containers.html
Convolution Layershttps://docs.pytorch.org/cppdocs/api/nn/convolution.html
Pooling Layershttps://docs.pytorch.org/cppdocs/api/nn/pooling.html
Linear Layershttps://docs.pytorch.org/cppdocs/api/nn/linear.html
Activation Functionshttps://docs.pytorch.org/cppdocs/api/nn/activation.html
Normalization Layershttps://docs.pytorch.org/cppdocs/api/nn/normalization.html
Dropout Layershttps://docs.pytorch.org/cppdocs/api/nn/dropout.html
Embedding Layershttps://docs.pytorch.org/cppdocs/api/nn/embedding.html
Recurrent Layershttps://docs.pytorch.org/cppdocs/api/nn/recurrent.html
Transformer Layershttps://docs.pytorch.org/cppdocs/api/nn/transformer.html
Loss Functionshttps://docs.pytorch.org/cppdocs/api/nn/loss.html
Functional APIhttps://docs.pytorch.org/cppdocs/api/nn/functional.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/nn/utilities.html
Optimizers (torch::optim)https://docs.pytorch.org/cppdocs/api/optim/index.html
Gradient Descent Optimizershttps://docs.pytorch.org/cppdocs/api/optim/gradient_descent.html
Adaptive Learning Rate Optimizershttps://docs.pytorch.org/cppdocs/api/optim/adaptive.html
Second-Order Optimizershttps://docs.pytorch.org/cppdocs/api/optim/second_order.html
Learning Rate Schedulershttps://docs.pytorch.org/cppdocs/api/optim/schedulers.html
Data Loading (torch::data)https://docs.pytorch.org/cppdocs/api/data/index.html
Datasetshttps://docs.pytorch.org/cppdocs/api/data/datasets.html
DataLoaderhttps://docs.pytorch.org/cppdocs/api/data/dataloader.html
Samplershttps://docs.pytorch.org/cppdocs/api/data/samplers.html
Transformshttps://docs.pytorch.org/cppdocs/api/data/transforms.html
Serialization (torch::serialize)https://docs.pytorch.org/cppdocs/api/serialize/index.html
Saving and Loadinghttps://docs.pytorch.org/cppdocs/api/serialize/save_load.html
Archiveshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html
Checkpointshttps://docs.pytorch.org/cppdocs/api/serialize/checkpoints.html
Torch Library APIhttps://docs.pytorch.org/cppdocs/api/library/index.html
Operator Registrationhttps://docs.pytorch.org/cppdocs/api/library/registration.html
Custom Classeshttps://docs.pytorch.org/cppdocs/api/library/custom_classes.html
Library Versioninghttps://docs.pytorch.org/cppdocs/api/library/versioning.html
Torch Stable APIhttps://docs.pytorch.org/cppdocs/api/stable/index.html
Library Registration Macroshttps://docs.pytorch.org/cppdocs/api/stable/registration.html
Stable Operatorshttps://docs.pytorch.org/cppdocs/api/stable/operators.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/stable/utilities.html
https://docs.pytorch.org/cppdocs/index.html
C++ API Referencehttps://docs.pytorch.org/cppdocs/api/index.html
Serialization (torch::serialize)https://docs.pytorch.org/cppdocs/api/serialize/index.html
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#archives
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#outputarchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveENSt10shared_ptrIN3jit15CompilationUnitEEE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveEv
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveERR13OutputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveERR13OutputArchive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveaSERR13OutputArchive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveER13OutputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveER13OutputArchive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveaSER13OutputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4NK5torch9serialize13OutputArchive16compilation_unitEv
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringERKN3c106IValueE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringERK6Tensorb
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringER13OutputArchive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERKNSt6stringE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERNSt7ostreamE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERKNSt8functionIF6size_tPKv6size_tEEE
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
Tshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize13OutputArchiveclEvDpRR2Ts
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize13OutputArchiveclEvDpRR2Ts
write()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive_1a99aa6bbbdaf41bbfd00a6e954e39502a
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#inputarchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
torch::loadhttps://docs.pytorch.org/cppdocs/api/serialize/save_load.html#PyTorchnamespacetorch_1ad98de93d4a74dd9a91161f64758f1a76
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveEv
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveERR12InputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveERR12InputArchive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveaSERR12InputArchive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveER12InputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveER12InputArchive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveaSER12InputArchive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveD0Ev
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringERN3c106IValueE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringERN3c106IValueE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringER6Tensorb
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringER6Tensorb
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringER12InputArchive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringER12InputArchive
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERKNSt6stringENSt8optionalIN5torch6DeviceEEE
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERNSt7istreamENSt8optionalIN5torch6DeviceEEE
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromEPKc6size_tNSt8optionalIN5torch6DeviceEEE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERKNSt8functionIF6size_t8uint64_tPv6size_tEEERKNSt8functionIF6size_tvEEENSt8optionalIN5torch6DeviceEEE
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4keysEv
Tshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize12InputArchiveclEvDpRR2Ts
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize12InputArchiveclEvDpRR2Ts
read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive_1ac93cb6f7bd24d35484c93b1c27986d5d
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_input_archive
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#PyTorchclasstorch_1_1serialize_1_1_output_archive
#https://docs.pytorch.org/cppdocs/api/serialize/archives.html#saving-multiple-values
previous Saving and Loading https://docs.pytorch.org/cppdocs/api/serialize/save_load.html
next Checkpoints https://docs.pytorch.org/cppdocs/api/serialize/checkpoints.html
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
previous Saving and Loading https://docs.pytorch.org/cppdocs/api/serialize/save_load.html
next Checkpoints https://docs.pytorch.org/cppdocs/api/serialize/checkpoints.html
OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#outputarchive
torch::serialize::OutputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveE
OutputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveENSt10shared_ptrIN3jit15CompilationUnitEEE
OutputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveEv
OutputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveERR13OutputArchive
operator=()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveaSERR13OutputArchive
OutputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive13OutputArchiveER13OutputArchive
operator=()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchiveaSER13OutputArchive
compilation_unit()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4NK5torch9serialize13OutputArchive16compilation_unitEv
write()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringERKN3c106IValueE
write()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringERK6Tensorb
write()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive5writeERKNSt6stringER13OutputArchive
save_to()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERKNSt6stringE
save_to()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERNSt7ostreamE
save_to()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize13OutputArchive7save_toERKNSt8functionIF6size_tPKv6size_tEEE
operator()()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize13OutputArchiveclEvDpRR2Ts
InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#inputarchive
torch::serialize::InputArchivehttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveE
InputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveEv
InputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveERR12InputArchive
operator=()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveaSERR12InputArchive
InputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive12InputArchiveER12InputArchive
operator=()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveaSER12InputArchive
~InputArchive()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchiveD0Ev
read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringERN3c106IValueE
try_read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringERN3c106IValueE
try_read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringER6Tensorb
read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringER6Tensorb
try_read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive8try_readERKNSt6stringER12InputArchive
read()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4readERKNSt6stringER12InputArchive
load_from()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERKNSt6stringENSt8optionalIN5torch6DeviceEEE
load_from()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERNSt7istreamENSt8optionalIN5torch6DeviceEEE
load_from()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromEPKc6size_tNSt8optionalIN5torch6DeviceEEE
load_from()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive9load_fromERKNSt8functionIF6size_t8uint64_tPv6size_tEEERKNSt8functionIF6size_tvEEENSt8optionalIN5torch6DeviceEEE
keys()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4N5torch9serialize12InputArchive4keysEv
operator()()https://docs.pytorch.org/cppdocs/api/serialize/archives.html#_CPPv4IDpEN5torch9serialize12InputArchiveclEvDpRR2Ts
Saving Multiple Valueshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html#saving-multiple-values
Show Source https://docs.pytorch.org/cppdocs/_sources/api/serialize/archives.md.txt
ExecuTorchhttps://docs.pytorch.org/executorch
Helionhttps://docs.pytorch.org/helion
torchaohttps://docs.pytorch.org/ao
kinetohttps://github.com/pytorch/kineto
torchtitanhttps://github.com/pytorch/torchtitan
TorchRLhttps://docs.pytorch.org/rl
torchvisionhttps://docs.pytorch.org/vision
torchaudiohttps://docs.pytorch.org/audio
tensordicthttps://docs.pytorch.org/tensordict
PyTorch on XLA Deviceshttps://docs.pytorch.org/xla
View Docshttps://docs.pytorch.org/docs/stable/index.html
View Tutorialshttps://docs.pytorch.org/tutorials
View Resourceshttps://pytorch.org/resources
Privacy Policyhttps://www.linuxfoundation.org/privacy/
https://www.facebook.com/pytorch
https://twitter.com/pytorch
https://www.youtube.com/pytorch
https://www.linkedin.com/company/pytorch
https://pytorch.slack.com
https://pytorch.org/wechat
Policieshttps://www.linuxfoundation.org/legal/policies
Trademark Usagehttps://www.linuxfoundation.org/trademark-usage
Privacy Policyhttp://www.linuxfoundation.org/privacy
Cookies Policyhttps://opensource.fb.com/legal/cookie-policy
Sphinxhttps://www.sphinx-doc.org/
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.