ReLU6 activation function.
More...
#include </home/runner/work/iganet/iganet/include/net/activation.hpp>
|
| | ReLU6 (bool inplace) |
| |
| | ReLU6 (torch::nn::functional::ReLU6FuncOptions options={}) |
| |
| | ~ReLU6 () override=default |
| |
| torch::Tensor | apply (const torch::Tensor &input) const override |
| | Applies the activation function to the given input.
|
| |
| torch::nn::functional::ReLU6FuncOptions & | options () |
| | Returns non-constant reference to options.
|
| |
| const torch::nn::functional::ReLU6FuncOptions & | options () const |
| | Returns constant reference to options.
|
| |
| void | pretty_print (std::ostream &os) const noexcept override |
| | Returns a string representation of the activation function.
|
| |
| torch::serialize::InputArchive & | read (torch::serialize::InputArchive &archive, const std::string &key="relu6") override |
| | Reads the activation function from a torch::serialize::InputArchive object.
|
| |
| torch::serialize::OutputArchive & | write (torch::serialize::OutputArchive &archive, const std::string &key="relu6") const override |
| | Writes the activation function into a torch::serialize::OutputArchive object.
|
| |
| | ~ActivationFunction () override=default |
| |
|
| torch::nn::functional::ReLU6FuncOptions | options_ |
| |
|
| virtual | ~FullQualifiedName ()=default |
| |
| 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.
|
| |
ReLU6 activation function.
\[
\text{ReLU6}(x) = \min(\max(0,x),6)
\]
◆ ReLU6() [1/2]
| iganet::ReLU6::ReLU6 |
( |
torch::nn::functional::ReLU6FuncOptions |
options = {} | ) |
|
|
inlineexplicit |
◆ ReLU6() [2/2]
| iganet::ReLU6::ReLU6 |
( |
bool |
inplace | ) |
|
|
inlineexplicit |
◆ ~ReLU6()
| iganet::ReLU6::~ReLU6 |
( |
| ) |
|
|
overridedefault |
◆ apply()
| torch::Tensor iganet::ReLU6::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
◆ options() [1/2]
| torch::nn::functional::ReLU6FuncOptions & iganet::ReLU6::options |
( |
| ) |
|
|
inline |
Returns non-constant reference to options.
◆ options() [2/2]
| const torch::nn::functional::ReLU6FuncOptions & iganet::ReLU6::options |
( |
| ) |
const |
|
inline |
Returns constant reference to options.
◆ pretty_print()
| void iganet::ReLU6::pretty_print |
( |
std::ostream & |
os | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ read()
| torch::serialize::InputArchive & iganet::ReLU6::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "relu6" |
|
) |
| |
|
inlineoverridevirtual |
◆ write()
| torch::serialize::OutputArchive & iganet::ReLU6::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "relu6" |
|
) |
| const |
|
inlineoverridevirtual |
◆ options_
| torch::nn::functional::ReLU6FuncOptions iganet::ReLU6::options_ |
|
private |
The documentation for this class was generated from the following file: