torchoutil.extras.numpy.saving module

dump_numpy(
obj: ndarray,
fpath: str | Path | None = None,
*args,
np_format: Literal['npy', 'npz'] | None = 'npy',
overwrite: bool = True,
make_parents: bool = True,
**kwargs,
) bytes[source]
load_numpy(
fpath: str | Path,
*args,
**kwargs,
) ndarray[source]