TensorDictBase.auto_device#
- TensorDictBase.auto_device_() Self#
Automatically sets the device, if it is unique.
Returns: self with the edited
deviceattribute.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.