tensorplay.nn.functional.hardtanh tensorplay.nn.functional.hardtanh(input, min_val=-1.0, max_val=1.0, inplace=False) → Tensor[source]