Rate this Page
★ ★ ★ ★ ★

torch.Tensor.clamp_max_#

Tensor.clamp_max_(max) → Tensor#

In-place version of clamp_max(). Broadcasting must not change the shape of the tensor being modified.