LogSigmoid activation function.
More...
#include </home/runner/work/iganet/iganet/include/net/activation.hpp>
|
| | LogSigmoid ()=default |
| |
| | ~LogSigmoid () override=default |
| |
| torch::Tensor | apply (const torch::Tensor &input) const override |
| | Applies the activation function to the given input.
|
| |
| 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="logsigmoid") override |
| | Reads the activation function from a torch::serialize::InputArchive object.
|
| |
| torch::serialize::OutputArchive & | write (torch::serialize::OutputArchive &archive, const std::string &key="logsigmoid") const override |
| | Writes the activation function into a torch::serialize::OutputArchive object.
|
| |
| | ~ActivationFunction () override=default |
| |
|
| 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.
|
| |
LogSigmoid activation function.
\[
\text{LogSigmoid}(x) = \log \left( \frac{1}{1+\exp(-x)} \right)
\]
◆ LogSigmoid()
| iganet::LogSigmoid::LogSigmoid |
( |
| ) |
|
|
explicitdefault |
◆ ~LogSigmoid()
| iganet::LogSigmoid::~LogSigmoid |
( |
| ) |
|
|
overridedefault |
◆ apply()
| torch::Tensor iganet::LogSigmoid::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
◆ pretty_print()
| void iganet::LogSigmoid::pretty_print |
( |
std::ostream & |
os | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ read()
| torch::serialize::InputArchive & iganet::LogSigmoid::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "logsigmoid" |
|
) |
| |
|
inlineoverridevirtual |
◆ write()
| torch::serialize::OutputArchive & iganet::LogSigmoid::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "logsigmoid" |
|
) |
| const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: