Rate this Page
★ ★ ★ ★ ★

TensorDictBase.mod#

TensorDictBase.mod(other: TensorCollection | Tensor) → Self#

Computes the element-wise modulo of self and other.

Parameters:

other (TensorDict or Tensor) – the other input tensordict or tensor.

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