hardtanh_

paddle.nn.functional. hardtanh_ ( x: Tensor, min: float = - 1.0, max: float = 1.0, name: str | None = None ) Tensor [source]

Inplace version of hardtanh API, the output Tensor will be inplaced with input x. Please refer to hardtanh.