16 #include <boost/variant/static_visitor.hpp>
19 using namespace mlpack::ann;
41 return "atrousconvolution";
52 return "alphadropout";
118 return "flexiblerelu";
151 return "linearnobias";
173 return "meanpooling";
184 return "multiplyconstant";
207 return "transposedconvolution";
307 return "unsupported";
313 return layer.apply_visitor(*
this);
317 template<
typename LayerType>
320 return LayerString(layer);
boost::variant< Recurrent< arma::mat, arma::mat > *, RecurrentAttention< arma::mat, arma::mat > *, ReinforceNormal< arma::mat, arma::mat > *, Reparametrization< arma::mat, arma::mat > *, Select< arma::mat, arma::mat > *, Sequential< arma::mat, arma::mat, false > *, Sequential< arma::mat, arma::mat, true > *, Subview< arma::mat, arma::mat > *, VRClassReward< arma::mat, arma::mat > *, VirtualBatchNorm< arma::mat, arma::mat > * > MoreTypes
std::string LayerString(Constant<> *) const
Implementation of the log softmax layer.
std::string LayerString(AlphaDropout<> *) const
std::string LayerString(SigmoidLayer<> *) const
std::string operator()(LayerType *layer) const
Overload function call.
std::string LayerString(LinearNoBias<> *) const
std::string LayerString(Dropout<> *) const
std::string LayerString(MeanPooling<> *) const
The FlexibleReLU activation function, defined by.
Implementation of the Transposed Convolution class.
std::string LayerString(LayerNorm<> *) const
std::string LayerString(BatchNorm<> *) const
std::string LayerString(ReLULayer<> *) const
Implementation of the Linear layer class.
The LeakyReLU activation function, defined by.
std::string LayerString(HardTanH<> *) const
std::string LayerString(MultiplyConstant<> *) const
std::string LayerString(FlexibleReLU<> *) const
Implementation of the Convolution class.
Implementation of the MeanPooling.
std::string LayerString(TransposedConvolution<> *) const
std::string LayerString(AtrousConvolution<> *) const
The Hard Tanh activation function, defined by.
The PReLU activation function, defined by (where alpha is trainable)
Implementation of the base layer.
std::string LayerString(LogSoftMax<> *) const
std::string operator()(MoreTypes layer) const
Overload function call.
std::string LayerString(ELU<> *) const
Declaration of the Layer Normalization class.
Implementation of the LinearNoBias class.
std::string LayerString(TanHLayer<> *) const
std::string LayerString(Convolution<> *) const
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
The dropout layer is a regularizer that randomly with probability 'ratio' sets input values to zero a...
std::string LayerString(MaxPooling<> *) const
std::string LayerString(IdentityLayer<> *) const
std::string LayerString(T *) const
The DropConnect layer is a regularizer that randomly with probability ratio sets the connection value...
Implementation of the multiply constant layer.
The alpha - dropout layer is a regularizer that randomly with probability 'ratio' sets input values t...
Implementation of a class that returns the string representation of the name of the given layer...
Declaration of the Batch Normalization layer class.
LayerNameVisitor()
Create the LayerNameVisitor object.
Implementation of the constant layer.
Implementation of the MaxPooling layer.
The ELU activation function, defined by.
std::string LayerString(LeakyReLU<> *) const
std::string LayerString(PReLU<> *) const
std::string LayerString(DropConnect<> *) const
std::string LayerString(Linear<> *) const
Implementation of the Atrous Convolution class.