:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespacetorch_1_1nn_1_1functional_1ad74120097a1e0ac0f25e92179d3794d7: Function torch::nn::functional::hardtanh ======================================== - Defined in :ref:`file_torch_csrc_api_include_torch_nn_functional_activation.h` Function Documentation ---------------------- .. doxygenfunction:: torch::nn::functional::hardtanh(Tensor, const HardtanhFuncOptions&)