Rate this Page
★ ★ ★ ★ ★

TensorDictBase.clamp_max#

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

In-place version of clamp_max().

Note

Inplace clamp_max does not support default keyword argument.

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