Typedef torch::nn::functional::HardtanhFuncOptions¶
Defined in File activation.h
Typedef Documentation¶
-
using torch::nn::functional::HardtanhFuncOptions = HardtanhOptions¶
Options for
torch::nn::functional::hardtanh
.See the documentation for
torch::nn::HardtanhOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::hardtanh(x, F::HardtanhFuncOptions().min_val(-1.0).max_val(1.0).inplace(true));