Local response Normalization.
More...
#include </home/runner/work/iganet/iganet/include/iganet/net/activation.hpp>
|
| | LocalResponseNorm (const torch::nn::functional::LocalResponseNormFuncOptions &options) |
| | Provides the LocalResponseNorm operation.
|
| |
| | LocalResponseNorm (int64_t size) |
| | Provides the LocalResponseNorm operation.
|
| |
| | LocalResponseNorm (int64_t size, double alpha, double beta, double k) |
| | Provides the LocalResponseNorm operation.
|
| |
| | ~LocalResponseNorm () override=default |
| |
| torch::Tensor | apply (const torch::Tensor &input) const override |
| | Applies the activation function to the given input.
|
| |
| torch::nn::functional::LocalResponseNormFuncOptions & | options () |
| | Returns non-constant reference to options.
|
| |
| const torch::nn::functional::LocalResponseNormFuncOptions & | 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="local_response_norm") override |
| | Reads the activation function from a torch::serialize::InputArchive object.
|
| |
| torch::serialize::OutputArchive & | write (torch::serialize::OutputArchive &archive, const std::string &key="local_response_norm") const override |
| | Writes the activation function into a torch::serialize::OutputArchive object.
|
| |
| | ~ActivationFunction () override=default |
| |
|
| torch::nn::functional::LocalResponseNormFuncOptions | 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.
|
| |
Local response Normalization.
◆ LocalResponseNorm() [1/3]
| iganet::LocalResponseNorm::LocalResponseNorm |
( |
int64_t |
size | ) |
|
|
inlineexplicit |
◆ LocalResponseNorm() [2/3]
| iganet::LocalResponseNorm::LocalResponseNorm |
( |
const torch::nn::functional::LocalResponseNormFuncOptions & |
options | ) |
|
|
inlineexplicit |
◆ LocalResponseNorm() [3/3]
| iganet::LocalResponseNorm::LocalResponseNorm |
( |
int64_t |
size, |
|
|
double |
alpha, |
|
|
double |
beta, |
|
|
double |
k |
|
) |
| |
|
inlineexplicit |
Provides the LocalResponseNorm operation.
- Parameters
-
| size | Value of size. |
| alpha | Scaling factor. |
| beta | Value of beta. |
| k | Value of k. |
◆ ~LocalResponseNorm()
| iganet::LocalResponseNorm::~LocalResponseNorm |
( |
| ) |
|
|
overridedefault |
◆ apply()
| torch::Tensor iganet::LocalResponseNorm::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
Applies the activation function to the given input.
- Parameters
-
| input | Tensor to which the activation function is applied. |
- Returns
- The activated tensor.
Implements iganet::ActivationFunction.
◆ options() [1/2]
| torch::nn::functional::LocalResponseNormFuncOptions & iganet::LocalResponseNorm::options |
( |
| ) |
|
|
inline |
Returns non-constant reference to options.
- Returns
- Mutable reference to the activation options.
◆ options() [2/2]
| const torch::nn::functional::LocalResponseNormFuncOptions & iganet::LocalResponseNorm::options |
( |
| ) |
const |
|
inline |
Returns constant reference to options.
- Returns
- Constant reference to the activation options.
◆ pretty_print()
| void iganet::LocalResponseNorm::pretty_print |
( |
std::ostream & |
os | ) |
const |
|
inlineoverridevirtualnoexcept |
Returns a string representation of the activation function.
- Parameters
-
| os | Stream that receives the representation. |
Implements iganet::ActivationFunction.
◆ read()
| torch::serialize::InputArchive & iganet::LocalResponseNorm::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "local_response_norm" |
|
) |
| |
|
inlineoverridevirtual |
Reads the activation function from a torch::serialize::InputArchive object.
- Parameters
-
| archive | Input archive from which the activation state is read. |
| key | Key prefix under which the state is stored. |
- Returns
- A reference to
archive.
Implements iganet::ActivationFunction.
◆ write()
| torch::serialize::OutputArchive & iganet::LocalResponseNorm::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "local_response_norm" |
|
) |
| const |
|
inlineoverridevirtual |
Writes the activation function into a torch::serialize::OutputArchive object.
- Parameters
-
| archive | Output archive that receives the activation state. |
| key | Key prefix under which the state is stored. |
- Returns
- A reference to
archive.
Implements iganet::ActivationFunction.
◆ options_
| torch::nn::functional::LocalResponseNormFuncOptions iganet::LocalResponseNorm::options_ |
|
private |
The documentation for this class was generated from the following file: