TensorDictBase.mod#
- TensorDictBase.mod(other: TensorCollection | Tensor) Self#
Computes the element-wise modulo of
selfandother.- 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.