16 #include <boost/variant/static_visitor.hpp> 41 return "adaptivemaxpooling";
52 return "adaptivemeanpooling";
63 return "atrousconvolution";
74 return "alphadropout";
107 return "convolution";
118 return "dropconnect";
140 return "flexiblerelu";
173 return "linearnobias";
184 return "noisylinear";
206 return "meanpooling";
228 return "multiplyconstant";
251 return "transposedconvolution";
348 std::string LayerString(
LSTM<>* )
const 428 return "unsupported";
434 return layer.apply_visitor(*
this);
438 template<
typename LayerType>
441 return LayerString(layer);
std::string LayerString(T *) const
Return the name of the layer of specified type as a string.
Definition: layer_names.hpp:426
std::string LayerString(FlexibleReLU<> *) const
Return the name of the given layer of type FlexibleReLU as a string.
Definition: layer_names.hpp:138
Artificial Neural Network.
Definition: elish_function.hpp:32
std::string LayerString(ELU<> *) const
Return the name of the given layer of type ELU as a string.
Definition: layer_names.hpp:282
Implementation of the AdaptiveMaxPooling layer.
Definition: adaptive_max_pooling.hpp:33
std::string LayerString(AlphaDropout<> *) const
Return the name of the given layer of type AlphaDropout as a string.
Definition: layer_names.hpp:72
Implementation of the log softmax layer.
Definition: log_softmax.hpp:36
std::string LayerString(SigmoidLayer<> *) const
Return the name of the given layer of type SigmoidLayer as a string.
Definition: layer_names.hpp:326
std::string LayerString(LpPooling<> *) const
Return the name of the given layer of type LpPooling as a string.
Definition: layer_names.hpp:215
The FlexibleReLU activation function, defined by.
Definition: flexible_relu.hpp:59
Implementation of the Transposed Convolution class.
Definition: layer_types.hpp:188
std::string LayerString(Dropout<> *) const
Return the name of the given layer of type Dropout as a string.
Definition: layer_names.hpp:127
std::string LayerString(Highway<> *) const
Return the name of the given layer of type Highway as a string.
Definition: layer_names.hpp:370
Implementation of the LPPooling.
Definition: lp_pooling.hpp:32
std::string LayerString(Linear<> *) const
Return the name of the given layer of type Linear as a string.
Definition: layer_names.hpp:160
std::string LayerString(NoisyLinear<> *) const
Return the name of the given layer of type NoisyLinear as a string.
Definition: layer_names.hpp:182
Implementation of the Linear layer class.
Definition: layer_types.hpp:93
The LeakyReLU activation function, defined by.
Definition: leaky_relu.hpp:44
std::string LayerString(Glimpse<> *) const
Return the name of the given layer of type Glimpse as a string.
Definition: layer_names.hpp:392
Implementation of the Convolution class.
Definition: convolution.hpp:77
Implementation of the MeanPooling.
Definition: mean_pooling.hpp:33
Declaration of the WeightNorm layer class.
Definition: layer_types.hpp:215
The Hard Tanh activation function, defined by.
Definition: hard_tanh.hpp:49
std::string LayerString(MaxPooling<> *) const
Return the name of the given layer of type MaxPooling as a string.
Definition: layer_names.hpp:193
std::string LayerString(LayerNorm<> *) const
Return the name of the given layer of type LayerNorm as a string.
Definition: layer_names.hpp:149
The PReLU activation function, defined by (where alpha is trainable)
Definition: parametric_relu.hpp:45
Implementation of the AdaptiveMeanPooling.
Definition: adaptive_mean_pooling.hpp:34
Implementation of the base layer.
Definition: base_layer.hpp:71
std::string LayerString(WeightNorm<> *) const
Return the name of the given layer of type WeightNorm as a string.
Definition: layer_names.hpp:414
std::string LayerString(PReLU<> *) const
Return the name of the given layer of type PReLU as a string.
Definition: layer_names.hpp:315
std::string LayerString(AdaptiveMaxPooling<> *) const
Return the name of the given layer of type AdaptiveMaxPooling as string.
Definition: layer_names.hpp:39
std::string LayerString(Convolution<> *) const
Return the name of the given layer of type Convolution as a string.
Definition: layer_names.hpp:105
std::string LayerString(BatchNorm<> *) const
Return the name of the given layer of type BatchNorm as a string.
Definition: layer_names.hpp:83
Implementation of the Highway layer.
Definition: highway.hpp:58
std::string LayerString(ReLULayer<> *) const
Return the name of the given layer of type ReLULayer as a string.
Definition: layer_names.hpp:237
std::string LayerString(MeanPooling<> *) const
Return the name of the given layer of type MeanPooling as a string.
Definition: layer_names.hpp:204
Implementation of the LSTM module class.
Definition: layer_types.hpp:82
std::string LayerString(MultiplyConstant<> *) const
Return the name of the given layer of type MultiplyConstant as a string.
Definition: layer_names.hpp:226
Declaration of the Layer Normalization class.
Definition: layer_norm.hpp:65
Implementation of the NoisyLinear layer class.
Definition: layer_types.hpp:107
std::string LayerString(LeakyReLU<> *) const
Return the name of the given layer of type LeakyReLU as a string.
Definition: layer_names.hpp:304
std::string LayerString(TransposedConvolution<> *) const
Return the name of the given layer of type TransposedConvolution as a string.
Definition: layer_names.hpp:249
Implementation of the LinearNoBias class.
Definition: layer_types.hpp:103
std::string operator()(MoreTypes layer) const
Overload function call.
Definition: layer_names.hpp:432
A concatenated ReLU has two outputs, one ReLU and one negative ReLU, concatenated together...
Definition: c_relu.hpp:50
An implementation of a gru network layer.
Definition: gru.hpp:58
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...
Definition: dropout.hpp:53
std::string LayerString(CReLU<> *) const
Return the name of the given layer of type CReLU as a string.
Definition: layer_names.hpp:359
std::string LayerString(LinearNoBias<> *) const
Return the name of the given layer of type LinearNoBias as a string.
Definition: layer_names.hpp:171
The glimpse layer returns a retina-like representation (down-scaled cropped images) of increasing sca...
Definition: glimpse.hpp:88
std::string LayerString(AtrousConvolution<> *) const
Return the name of the given layer of type AtrousConvolution as a string.
Definition: layer_names.hpp:61
The DropConnect layer is a regularizer that randomly with probability ratio sets the connection value...
Definition: dropconnect.hpp:63
std::string LayerString(TanHLayer<> *) const
Return the name of the given layer of type TanHLayer as a string.
Definition: layer_names.hpp:271
Implementation of the multiply constant layer.
Definition: multiply_constant.hpp:34
std::string LayerString(DropConnect<> *) const
Return the name of the given layer of type DropConnect as a string.
Definition: layer_names.hpp:116
std::string LayerString(AdaptiveMeanPooling<> *) const
Return the name of the given layer of type AdaptiveMeanPooling as string.
Definition: layer_names.hpp:50
The alpha - dropout layer is a regularizer that randomly with probability 'ratio' sets input values t...
Definition: alpha_dropout.hpp:50
Implementation of a class that returns the string representation of the name of the given layer...
Definition: layer_names.hpp:25
LayerNameVisitor()
Create the LayerNameVisitor object.
Definition: layer_names.hpp:29
std::string LayerString(LogSoftMax<> *) const
Return the name of the given layer of type LogSoftMax as a string.
Definition: layer_names.hpp:337
Declaration of the Batch Normalization layer class.
Definition: batch_norm.hpp:56
std::string operator()(LayerType *layer) const
Overload function call.
Definition: layer_names.hpp:439
std::string LayerString(GRU<> *) const
Return the name of the given layer of type GRU as a string.
Definition: layer_names.hpp:381
std::string LayerString(Constant<> *) const
Return the name of the given layer of type Constant as a string.
Definition: layer_names.hpp:94
Implementation of the constant layer.
Definition: constant.hpp:34
Implementation of the MaxPooling layer.
Definition: max_pooling.hpp:52
The ELU activation function, defined by.
Definition: elu.hpp:111
std::string LayerString(HardTanH<> *) const
Return the name of the given layer of type HardTanH as a string.
Definition: layer_names.hpp:293
std::string LayerString(FastLSTM<> *) const
Return the name of the given layer of type FastLSTM as a string.
Definition: layer_names.hpp:403
An implementation of a faster version of the Fast LSTM network layer.
Definition: fast_lstm.hpp:66
std::string LayerString(IdentityLayer<> *) const
Return the name of the given layer of type IdentityLayer as a string.
Definition: layer_names.hpp:260
Implementation of the Atrous Convolution class.
Definition: atrous_convolution.hpp:52