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