Rate this Page
★ ★ ★ ★ ★

TensorDictBase.auto_device#

TensorDictBase.auto_device_() → Self#

Automatically sets the device, if it is unique.

Returns: self with the edited device attribute.

Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.