LayerNameVisitor Class Reference

Implementation of a class that returns the string representation of the name of the given layer. More...

Inheritance diagram for LayerNameVisitor:

Public Member Functions

 LayerNameVisitor ()
 Create the LayerNameVisitor object. More...

 
std::string LayerString (AdaptiveMaxPooling<> *) const
 Return the name of the given layer of type AdaptiveMaxPooling as string. More...

 
std::string LayerString (AdaptiveMeanPooling<> *) const
 Return the name of the given layer of type AdaptiveMeanPooling as string. More...

 
std::string LayerString (AtrousConvolution<> *) const
 Return the name of the given layer of type AtrousConvolution as a string. More...

 
std::string LayerString (AlphaDropout<> *) const
 Return the name of the given layer of type AlphaDropout as a string. More...

 
std::string LayerString (BatchNorm<> *) const
 Return the name of the given layer of type BatchNorm as a string. More...

 
std::string LayerString (Constant<> *) const
 Return the name of the given layer of type Constant as a string. More...

 
std::string LayerString (Convolution<> *) const
 Return the name of the given layer of type Convolution as a string. More...

 
std::string LayerString (DropConnect<> *) const
 Return the name of the given layer of type DropConnect as a string. More...

 
std::string LayerString (Dropout<> *) const
 Return the name of the given layer of type Dropout as a string. More...

 
std::string LayerString (FlexibleReLU<> *) const
 Return the name of the given layer of type FlexibleReLU as a string. More...

 
std::string LayerString (LayerNorm<> *) const
 Return the name of the given layer of type LayerNorm as a string. More...

 
std::string LayerString (Linear<> *) const
 Return the name of the given layer of type Linear as a string. More...

 
std::string LayerString (LinearNoBias<> *) const
 Return the name of the given layer of type LinearNoBias as a string. More...

 
std::string LayerString (NoisyLinear<> *) const
 Return the name of the given layer of type NoisyLinear as a string. More...

 
std::string LayerString (MaxPooling<> *) const
 Return the name of the given layer of type MaxPooling as a string. More...

 
std::string LayerString (MeanPooling<> *) const
 Return the name of the given layer of type MeanPooling as a string. More...

 
std::string LayerString (MultiplyConstant<> *) const
 Return the name of the given layer of type MultiplyConstant as a string. More...

 
std::string LayerString (ReLULayer<> *) const
 Return the name of the given layer of type ReLULayer as a string. More...

 
std::string LayerString (TransposedConvolution<> *) const
 Return the name of the given layer of type TransposedConvolution as a string. More...

 
std::string LayerString (IdentityLayer<> *) const
 Return the name of the given layer of type IdentityLayer as a string. More...

 
std::string LayerString (TanHLayer<> *) const
 Return the name of the given layer of type TanHLayer as a string. More...

 
std::string LayerString (ELU<> *) const
 Return the name of the given layer of type ELU as a string. More...

 
std::string LayerString (HardTanH<> *) const
 Return the name of the given layer of type HardTanH as a string. More...

 
std::string LayerString (LeakyReLU<> *) const
 Return the name of the given layer of type LeakyReLU as a string. More...

 
std::string LayerString (PReLU<> *) const
 Return the name of the given layer of type PReLU as a string. More...

 
std::string LayerString (SigmoidLayer<> *) const
 Return the name of the given layer of type SigmoidLayer as a string. More...

 
std::string LayerString (LogSoftMax<> *) const
 Return the name of the given layer of type LogSoftMax as a string. More...

 
std::string LayerString (LSTM<> *) const
 
std::string LayerString (CReLU<> *) const
 Return the name of the given layer of type CReLU as a string. More...

 
std::string LayerString (Highway<> *) const
 Return the name of the given layer of type Highway as a string. More...

 
std::string LayerString (GRU<> *) const
 Return the name of the given layer of type GRU as a string. More...

 
std::string LayerString (Glimpse<> *) const
 Return the name of the given layer of type Glimpse as a string. More...

 
std::string LayerString (FastLSTM<> *) const
 Return the name of the given layer of type FastLSTM as a string. More...

 
std::string LayerString (WeightNorm<> *) const
 Return the name of the given layer of type WeightNorm as a string. More...

 
template
<
typename
T
>
std::string LayerString (T *) const
 Return the name of the layer of specified type as a string. More...

 
std::string operator() (MoreTypes layer) const
 Overload function call. More...

 
template
<
typename
LayerType
>
std::string operator() (LayerType *layer) const
 Overload function call. More...

 

Detailed Description

Implementation of a class that returns the string representation of the name of the given layer.

Definition at line 25 of file layer_names.hpp.

Constructor & Destructor Documentation

◆ LayerNameVisitor()

LayerNameVisitor ( )
inline

Create the LayerNameVisitor object.

Definition at line 29 of file layer_names.hpp.

Member Function Documentation

◆ LayerString() [1/35]

std::string LayerString ( AdaptiveMaxPooling<> *  ) const
inline

Return the name of the given layer of type AdaptiveMaxPooling as string.

Parameters
*Given layer of type AdaptiveMaxPooling.
Returns
The string representation of the layer.

Definition at line 39 of file layer_names.hpp.

◆ LayerString() [2/35]

std::string LayerString ( AdaptiveMeanPooling<> *  ) const
inline

Return the name of the given layer of type AdaptiveMeanPooling as string.

Parameters
*Given layer of type AdaptiveMeanPooling.
Returns
The string representation of the layer.

Definition at line 50 of file layer_names.hpp.

◆ LayerString() [3/35]

std::string LayerString ( AtrousConvolution<> *  ) const
inline

Return the name of the given layer of type AtrousConvolution as a string.

Parameters
*Given layer of type AtrousConvolution.
Returns
The string representation of the layer.

Definition at line 61 of file layer_names.hpp.

◆ LayerString() [4/35]

std::string LayerString ( AlphaDropout<> *  ) const
inline

Return the name of the given layer of type AlphaDropout as a string.

Parameters
*Given layer of type AlphaDropout.
Returns
The string representation of the layer.

Definition at line 72 of file layer_names.hpp.

◆ LayerString() [5/35]

std::string LayerString ( BatchNorm<> *  ) const
inline

Return the name of the given layer of type BatchNorm as a string.

Parameters
*Given layer of type BatchNorm.
Returns
The string representation of the layer.

Definition at line 83 of file layer_names.hpp.

◆ LayerString() [6/35]

std::string LayerString ( Constant<> *  ) const
inline

Return the name of the given layer of type Constant as a string.

Parameters
*Given layer of type Constant.
Returns
The string representation of the layer.

Definition at line 94 of file layer_names.hpp.

◆ LayerString() [7/35]

std::string LayerString ( Convolution<> *  ) const
inline

Return the name of the given layer of type Convolution as a string.

Parameters
*Given layer of type Convolution.
Returns
The string representation of the layer.

Definition at line 105 of file layer_names.hpp.

◆ LayerString() [8/35]

std::string LayerString ( DropConnect<> *  ) const
inline

Return the name of the given layer of type DropConnect as a string.

Parameters
*Given layer of type DropConnect.
Returns
The string representation of the layer.

Definition at line 116 of file layer_names.hpp.

◆ LayerString() [9/35]

std::string LayerString ( Dropout<> *  ) const
inline

Return the name of the given layer of type Dropout as a string.

Parameters
*Given layer of type Dropout.
Returns
The string representation of the layer.

Definition at line 127 of file layer_names.hpp.

◆ LayerString() [10/35]

std::string LayerString ( FlexibleReLU<> *  ) const
inline

Return the name of the given layer of type FlexibleReLU as a string.

Parameters
*Given layer of type FlexibleReLU.
Returns
The string representation of the layer.

Definition at line 138 of file layer_names.hpp.

◆ LayerString() [11/35]

std::string LayerString ( LayerNorm<> *  ) const
inline

Return the name of the given layer of type LayerNorm as a string.

Parameters
*Given layer of type LayerNorm.
Returns
The string representation of the layer.

Definition at line 149 of file layer_names.hpp.

◆ LayerString() [12/35]

std::string LayerString ( Linear<> *  ) const
inline

Return the name of the given layer of type Linear as a string.

Parameters
*Given layer of type Linear.
Returns
The string representation of the layer.

Definition at line 160 of file layer_names.hpp.

◆ LayerString() [13/35]

std::string LayerString ( LinearNoBias<> *  ) const
inline

Return the name of the given layer of type LinearNoBias as a string.

Parameters
*Given layer of type LinearNoBias.
Returns
The string representation of the layer.

Definition at line 171 of file layer_names.hpp.

◆ LayerString() [14/35]

std::string LayerString ( NoisyLinear<> *  ) const
inline

Return the name of the given layer of type NoisyLinear as a string.

Parameters
*Given layer of type NoisyLinear.
Returns
The string representation of the layer.

Definition at line 182 of file layer_names.hpp.

◆ LayerString() [15/35]

std::string LayerString ( MaxPooling<> *  ) const
inline

Return the name of the given layer of type MaxPooling as a string.

Parameters
*Given layer of type MaxPooling.
Returns
The string representation of the layer.

Definition at line 193 of file layer_names.hpp.

◆ LayerString() [16/35]

std::string LayerString ( MeanPooling<> *  ) const
inline

Return the name of the given layer of type MeanPooling as a string.

Parameters
*Given layer of type MeanPooling.
Returns
The string representation of the layer.

Definition at line 204 of file layer_names.hpp.

◆ LayerString() [17/35]

std::string LayerString ( MultiplyConstant<> *  ) const
inline

Return the name of the given layer of type MultiplyConstant as a string.

Parameters
*Given layer of type MultiplyConstant.
Returns
The string representation of the layer.

Definition at line 215 of file layer_names.hpp.

◆ LayerString() [18/35]

std::string LayerString ( ReLULayer<> *  ) const
inline

Return the name of the given layer of type ReLULayer as a string.

Parameters
*Given layer of type ReLULayer.
Returns
The string representation of the layer.

Definition at line 226 of file layer_names.hpp.

◆ LayerString() [19/35]

std::string LayerString ( TransposedConvolution<> *  ) const
inline

Return the name of the given layer of type TransposedConvolution as a string.

Parameters
*Given layer of type TransposedConvolution.
Returns
The string representation of the layer.

Definition at line 238 of file layer_names.hpp.

◆ LayerString() [20/35]

std::string LayerString ( IdentityLayer<> *  ) const
inline

Return the name of the given layer of type IdentityLayer as a string.

Parameters
*Given layer of type IdentityLayer.
Returns
The string representation of the layer.

Definition at line 249 of file layer_names.hpp.

◆ LayerString() [21/35]

std::string LayerString ( TanHLayer<> *  ) const
inline

Return the name of the given layer of type TanHLayer as a string.

Parameters
*Given layer of type TanHLayer.
Returns
The string representation of the layer.

Definition at line 260 of file layer_names.hpp.

◆ LayerString() [22/35]

std::string LayerString ( ELU<> *  ) const
inline

Return the name of the given layer of type ELU as a string.

Parameters
*Given layer of type ELU.
Returns
The string representation of the layer.

Definition at line 271 of file layer_names.hpp.

◆ LayerString() [23/35]

std::string LayerString ( HardTanH<> *  ) const
inline

Return the name of the given layer of type HardTanH as a string.

Parameters
*Given layer of type HardTanH.
Returns
The string representation of the layer.

Definition at line 282 of file layer_names.hpp.

◆ LayerString() [24/35]

std::string LayerString ( LeakyReLU<> *  ) const
inline

Return the name of the given layer of type LeakyReLU as a string.

Parameters
*Given layer of type LeakyReLU.
Returns
The string representation of the layer.

Definition at line 293 of file layer_names.hpp.

◆ LayerString() [25/35]

std::string LayerString ( PReLU<> *  ) const
inline

Return the name of the given layer of type PReLU as a string.

Parameters
*Given layer of type PReLU.
Returns
The string representation of the layer.

Definition at line 304 of file layer_names.hpp.

◆ LayerString() [26/35]

std::string LayerString ( SigmoidLayer<> *  ) const
inline

Return the name of the given layer of type SigmoidLayer as a string.

Parameters
*Given layer of type SigmoidLayer.
Returns
The string representation of the layer.

Definition at line 315 of file layer_names.hpp.

◆ LayerString() [27/35]

std::string LayerString ( LogSoftMax<> *  ) const
inline

Return the name of the given layer of type LogSoftMax as a string.

Parameters
*Given layer of type LogSoftMax.
Returns
The string representation of the layer.

Definition at line 326 of file layer_names.hpp.

◆ LayerString() [28/35]

std::string LayerString ( LSTM<> *  ) const
inline

Definition at line 337 of file layer_names.hpp.

◆ LayerString() [29/35]

std::string LayerString ( CReLU<> *  ) const
inline

Return the name of the given layer of type CReLU as a string.

Parameters
*Given layer of type CReLU.
Returns
The string representation of the layer.

Definition at line 348 of file layer_names.hpp.

◆ LayerString() [30/35]

std::string LayerString ( Highway<> *  ) const
inline

Return the name of the given layer of type Highway as a string.

Parameters
*Given layer of type Highway.
Returns
The string representation of the layer.

Definition at line 359 of file layer_names.hpp.

◆ LayerString() [31/35]

std::string LayerString ( GRU<> *  ) const
inline

Return the name of the given layer of type GRU as a string.

Parameters
*Given layer of type GRU.
Returns
The string representation of the layer.

Definition at line 370 of file layer_names.hpp.

◆ LayerString() [32/35]

std::string LayerString ( Glimpse<> *  ) const
inline

Return the name of the given layer of type Glimpse as a string.

Parameters
*Given layer of type Glimpse.
Returns
The string representation of the layer.

Definition at line 381 of file layer_names.hpp.

◆ LayerString() [33/35]

std::string LayerString ( FastLSTM<> *  ) const
inline

Return the name of the given layer of type FastLSTM as a string.

Parameters
*Given layer of type FastLSTM.
Returns
The string representation of the layer.

Definition at line 392 of file layer_names.hpp.

◆ LayerString() [34/35]

std::string LayerString ( WeightNorm<> *  ) const
inline

Return the name of the given layer of type WeightNorm as a string.

Parameters
*Given layer of type WeightNorm.
Returns
The string representation of the layer.

Definition at line 403 of file layer_names.hpp.

◆ LayerString() [35/35]

std::string LayerString ( T *  ) const
inline

Return the name of the layer of specified type as a string.

Parameters
*Given layer of any type.
Returns
A string declaring that the layer is unsupported.

Definition at line 415 of file layer_names.hpp.

◆ operator()() [1/2]

std::string operator() ( MoreTypes  layer) const
inline

Overload function call.

Definition at line 421 of file layer_names.hpp.

◆ operator()() [2/2]

std::string operator() ( LayerType *  layer) const
inline

Overload function call.

Definition at line 428 of file layer_names.hpp.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.3.2/src/mlpack/methods/ann/layer_names.hpp