PReLU activation function.
More...
#include </home/runner/work/iganet/iganet/include/layer.hpp>
|
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.
|
|
PReLU activation function.
◆ PReLU()
iganet::PReLU::PReLU |
( |
const torch::Tensor & |
weight | ) |
|
|
inlineexplicit |
◆ ~PReLU()
iganet::PReLU::~PReLU |
( |
| ) |
|
|
overridedefault |
◆ apply()
torch::Tensor iganet::PReLU::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
◆ pretty_print()
|
inlineoverridevirtualnoexcept |
◆ read()
torch::serialize::InputArchive & iganet::PReLU::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "prelu" |
|
) |
| |
|
inlineoverridevirtual |
◆ weight() [1/2]
torch::Tensor & iganet::PReLU::weight |
( |
| ) |
|
|
inline |
Returns non-constant reference to weights.
◆ weight() [2/2]
const torch::Tensor & iganet::PReLU::weight |
( |
| ) |
const |
|
inline |
Returns constant reference to weights.
◆ write()
torch::serialize::OutputArchive & iganet::PReLU::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "prelu" |
|
) |
| const |
|
inlineoverridevirtual |
◆ weight_
torch::Tensor iganet::PReLU::weight_ |
|
private |
The documentation for this class was generated from the following file: