Typedef torch::nn::functional::HardshrinkFuncOptions¶
Defined in File activation.h
Typedef Documentation¶
-
using torch::nn::functional::HardshrinkFuncOptions = HardshrinkOptions¶
Options for
torch::nn::functional::hardshrink
.See the documentation for
torch::nn::HardshrinkOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::hardshrink(x, F::HardshrinkFuncOptions().lambda(0.42));