torchoutil.serialization.dump_fn module¶
- dump(
- obj: Any,
- fpath: None | BinaryIO = None,
- *args,
- saving_backend: Literal['csv', 'json', 'h5py', 'numpy', 'pickle', 'safetensors', 'torch', 'torchaudio', 'yaml'] = 'torch',
- **kwargs,
- dump(
- obj: Any,
- fpath: str | Path | PathLike,
- *args,
- saving_backend: Literal['csv', 'json', 'h5py', 'numpy', 'pickle', 'safetensors', 'torch', 'torchaudio', 'yaml'] | None = 'torch',
- **kwargs,
Load from file using the correct backend.