converter#
Source code: tianshou/data/utils/converter.py
- from_hdf5(x: Group, device: str | None = None) int | float | Batch | ndarray | Tensor | object | dict[str, int | float | Batch | ndarray | Tensor | object | Hdf5ConvertibleType] [source]#
Restore object from HDF5 group.
- to_hdf5(x: dict[str, int | float | Batch | ndarray | Tensor | object | dict[str, int | float | Batch | ndarray | Tensor | object | Hdf5ConvertibleType]], y: Group, compression: str | None = None) None [source]#
Copy object into HDF5 group.