TensorDictBase.addcdiv#
- TensorDictBase.addcdiv_(other1, other2, *, value: float | None = 1)#
Adds
value * other1 / other2to every leaf in place and returnsself.The in-place version of
addcdiv().- Parameters:
other1 (TensorDictBase or Tensor) – the numerator, paired with the leaves as in
addcdiv().other2 (TensorDictBase or Tensor) – the denominator, paired like
other1.
- Keyword Arguments:
value (Number, optional) – the multiplier for \(\text{other1} / \text{other2}\). Defaults to
1.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.