Threshold activation function.
More...
#include </home/runner/work/iganet/iganet/include/layer.hpp>
|
torch::nn::functional::ThresholdFuncOptions | options_ |
|
|
virtual const std::string & | name () const noexcept |
| Returns the full qualified name of the object.
|
|
at::optional< std::string > | name_ |
| String storing the full qualified name of the object.
|
|
Threshold activation function.
\[
\text{Threshold}(x) =
\begin{cases}
x & \text{ if } x > threshold
value & \text{ otherwise }
\end{cases}
\]
◆ Threshold() [1/2]
iganet::Threshold::Threshold |
( |
torch::nn::functional::ThresholdFuncOptions |
options | ) |
|
|
inlineexplicit |
◆ Threshold() [2/2]
◆ ~Threshold()
iganet::Threshold::~Threshold |
( |
| ) |
|
|
overridedefault |
◆ apply()
torch::Tensor iganet::Threshold::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
◆ options() [1/2]
torch::nn::functional::ThresholdFuncOptions & iganet::Threshold::options |
( |
| ) |
|
|
inline |
Returns non-constant reference to options.
◆ options() [2/2]
const torch::nn::functional::ThresholdFuncOptions & iganet::Threshold::options |
( |
| ) |
const |
|
inline |
Returns constant reference to options.
◆ pretty_print()
|
inlineoverridevirtualnoexcept |
◆ read()
torch::serialize::InputArchive & iganet::Threshold::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "threshold" |
|
) |
| |
|
inlineoverridevirtual |
◆ write()
torch::serialize::OutputArchive & iganet::Threshold::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "threshold" |
|
) |
| const |
|
inlineoverridevirtual |
◆ options_
torch::nn::functional::ThresholdFuncOptions iganet::Threshold::options_ |
|
private |
The documentation for this class was generated from the following file: