Rate this Page
★ ★ ★ ★ ★

TensorDictBase.zero#

TensorDictBase.zero_() → Self#

Zeros all tensors in the tensordict in-place.

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