from_json#
- tensordict.from_json(path, *, auto_batch_size: bool = False, batch_dims: int | None = None, device: device | None = None, batch_size: Size | None = None, separator: str | None = None, dtype: dtype | None = None, lines: bool = False, **kwargs) TensorDictBase#
Creates a TensorDict from a JSON file.
See also
TensorDictBase.from_json()for more information.