torchoutil.serialization.load_fn module¶
- load(
- fpath: TextIO | BinaryIO,
- *args,
- saving_backend: Literal['csv', 'json', 'h5py', 'numpy', 'pickle', 'safetensors', 'torch', 'torchaudio', 'yaml'] = 'torch',
- **kwargs,
- load(
- 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.