Rate this Page
★ ★ ★ ★ ★

TensorDictBase.bool#

TensorDictBase.bool() → Self#

Casts all tensors to torch.bool.

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