Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. torch-node
  3. torch-node
  4. serialization

torch-node.serialization

Functions

  • save - Save tensors or a model to a file.
  • load - Load tensors from a file.
  • load_safetensors - Load tensors from safetensors format with metadata.

Types

  • SerializationFormat - Supported serialization formats.
  • SaveOptions - Options for save.
  • LoadOptions - Options for load.