Rate this Page
★ ★ ★ ★ ★

TensorDictBase.is_cpu#

property TensorDictBase.is_cpu#

Whether the tensordict has a CPU device (False if it has no device).

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