![]() |
IgANet
IGAnets - Isogeometric Analysis Networks
|
SELU activation function. More...
#include </home/runner/work/iganet/iganet/include/iganet/net/activation.hpp>
Public Member Functions | |
| SELU (bool inplace) | |
Provides the SELU operation. | |
| SELU (torch::nn::functional::SELUFuncOptions options={}) | |
Provides the SELU operation. | |
| ~SELU () override=default | |
| torch::Tensor | apply (const torch::Tensor &input) const override |
| Applies the activation function to the given input. | |
| torch::nn::functional::SELUFuncOptions & | options () |
| Returns non-constant reference to options. | |
| const torch::nn::functional::SELUFuncOptions & | 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="selu") override |
| Reads the activation function from a torch::serialize::InputArchive object. | |
| torch::serialize::OutputArchive & | write (torch::serialize::OutputArchive &archive, const std::string &key="selu") const override |
| Writes the activation function into a torch::serialize::OutputArchive object. | |
Public Member Functions inherited from iganet::ActivationFunction | |
| ~ActivationFunction () override=default | |
Private Attributes | |
| torch::nn::functional::SELUFuncOptions | options_ |
Additional Inherited Members | |
Protected Member Functions inherited from iganet::utils::FullQualifiedName | |
| virtual | ~FullQualifiedName ()=default |
| virtual const std::string & | name () const noexcept |
| Returns the full qualified name of the object. | |
Protected Attributes inherited from iganet::utils::FullQualifiedName | |
| at::optional< std::string > | name_ |
| String storing the full qualified name of the object. | |
SELU activation function.
\[ \text{SELU}(x) = s * ( \max(0,x) + \min(0, \alpha*(\exp(x)-1 ) ) ) \]
with \( s = 1.0507009873554804934193349852946 \) and. \( \alpha = 1.6732632423543772848170429916717 \).
|
inlineexplicit |
Provides the SELU operation.
| options | Configuration options. |
|
inlineexplicit |
Provides the SELU operation.
| inplace | Value of inplace. |
|
overridedefault |
|
inlineoverridevirtual |
Applies the activation function to the given input.
| input | Tensor to which the activation function is applied. |
Implements iganet::ActivationFunction.
|
inline |
Returns non-constant reference to options.
|
inline |
Returns constant reference to options.
|
inlineoverridevirtualnoexcept |
Returns a string representation of the activation function.
| os | Stream that receives the representation. |
Implements iganet::ActivationFunction.
|
inlineoverridevirtual |
Reads the activation function from a torch::serialize::InputArchive object.
| archive | Input archive from which the activation state is read. |
| key | Key prefix under which the state is stored. |
archive. Implements iganet::ActivationFunction.
|
inlineoverridevirtual |
Writes the activation function into a torch::serialize::OutputArchive object.
| archive | Output archive that receives the activation state. |
| key | Key prefix under which the state is stored. |
archive. Implements iganet::ActivationFunction.
|
private |