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