ClikaRT::nn::ThresholdOptions
struct
Header: ClikaRT/nn/generated/activation.h
Settings of Threshold: chain the setters, or assign the fields.
Member functions
ThresholdOptions()
explicit ThresholdOptions(double threshold, double value)
ThresholdOptions(threshold, value): the positional form.
Declared in ClikaRT/nn/generated/activation.h, line 1080
threshold(double)
ThresholdOptions& threshold(double v)
Sets threshold, the comparison bound.
Declared in ClikaRT/nn/generated/activation.h, line 1084
threshold()
double threshold() const
Reads threshold.
Declared in ClikaRT/nn/generated/activation.h, line 1086
value(double)
ThresholdOptions& value(double v)
Sets value, the replacement for elements at or below the bound.
Declared in ClikaRT/nn/generated/activation.h, line 1091
value()
double value() const
Reads value.
Declared in ClikaRT/nn/generated/activation.h, line 1093
inplace(bool)
ThresholdOptions& inplace(bool v)
Sets inplace, whether the forward writes the result into its input and returns that input.
Declared in ClikaRT/nn/generated/activation.h, line 1100
inplace()
bool inplace() const
Reads inplace.
Declared in ClikaRT/nn/generated/activation.h, line 1102
Data members
threshold_
double threshold_
The comparison bound. Required: set through the constructor.
Declared in ClikaRT/nn/generated/activation.h, line 1088
value_
double value_
The replacement for elements at or below the bound. Required: set through the constructor.
Declared in ClikaRT/nn/generated/activation.h, line 1096
inplace_
bool inplace_ = false
Whether the forward writes the result into its input and returns that input. Default false.
Declared in ClikaRT/nn/generated/activation.h, line 1105