Typedef torch::nn::functional::ThresholdFuncOptions¶
Defined in File activation.h
Typedef Documentation¶
-
using torch::nn::functional::ThresholdFuncOptions = ThresholdOptions¶
Options for
torch::nn::functional::threshold
.See the documentation for
torch::nn::ThresholdOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::threshold(x, F::ThresholdFuncOptions(0.5, 0.5).inplace(true));