oneflow.nn.functional.hardtanh¶ oneflow.nn.functional.hardtanh(input, min_val=- 1.0, max_val=1.0) → Tensor¶ Applies the HardTanh function element-wise. See Hardtanh for more details.