Gumbel-Softmax distribution activation function.
More...
#include </home/runner/work/iganet/iganet/include/layer.hpp>
|
torch::nn::functional::GumbelSoftmaxFuncOptions | options_ |
|
|
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.
|
|
Gumbel-Softmax distribution activation function.
◆ GumbelSoftmax() [1/2]
iganet::GumbelSoftmax::GumbelSoftmax |
( |
torch::nn::functional::GumbelSoftmaxFuncOptions |
options = {} | ) |
|
|
inlineexplicit |
◆ GumbelSoftmax() [2/2]
iganet::GumbelSoftmax::GumbelSoftmax |
( |
double |
tau, |
|
|
int |
dim, |
|
|
bool |
hard |
|
) |
| |
|
inlineexplicit |
◆ ~GumbelSoftmax()
iganet::GumbelSoftmax::~GumbelSoftmax |
( |
| ) |
|
|
overridedefault |
◆ apply()
torch::Tensor iganet::GumbelSoftmax::apply |
( |
const torch::Tensor & |
input | ) |
const |
|
inlineoverridevirtual |
◆ options() [1/2]
torch::nn::functional::GumbelSoftmaxFuncOptions & iganet::GumbelSoftmax::options |
( |
| ) |
|
|
inline |
Returns non-constant reference to options.
◆ options() [2/2]
const torch::nn::functional::GumbelSoftmaxFuncOptions & iganet::GumbelSoftmax::options |
( |
| ) |
const |
|
inline |
Returns constant reference to options.
◆ pretty_print()
|
inlineoverridevirtualnoexcept |
◆ read()
torch::serialize::InputArchive & iganet::GumbelSoftmax::read |
( |
torch::serialize::InputArchive & |
archive, |
|
|
const std::string & |
key = "gumbel_softmax" |
|
) |
| |
|
inlineoverridevirtual |
◆ write()
torch::serialize::OutputArchive & iganet::GumbelSoftmax::write |
( |
torch::serialize::OutputArchive & |
archive, |
|
|
const std::string & |
key = "gumbel_softmax" |
|
) |
| const |
|
inlineoverridevirtual |
◆ options_
torch::nn::functional::GumbelSoftmaxFuncOptions iganet::GumbelSoftmax::options_ |
|
private |
The documentation for this class was generated from the following file: