13 #ifndef MLPACK_METHODS_ANN_LAYER_LAYER_TRAITS_HPP 14 #define MLPACK_METHODS_ANN_LAYER_LAYER_TRAITS_HPP 28 template<
typename LayerType>
50 static const bool IsLSTMLayer =
false;
55 static const bool IsConnection =
false;
60 HAS_MEM_FUNC(Gradient, HasGradientCheck);
65 HAS_MEM_FUNC(Deterministic, HasDeterministicCheck);
69 HAS_MEM_FUNC(Parameters, HasParametersCheck);
73 HAS_MEM_FUNC(
Add, HasAddCheck);
81 HAS_MEM_FUNC(Location, HasLocationCheck);
85 HAS_MEM_FUNC(Reset, HasResetCheck);
89 HAS_MEM_FUNC(ResetCell, HasResetCellCheck);
93 HAS_MEM_FUNC(Reward, HasRewardCheck);
97 HAS_MEM_FUNC(InputWidth, HasInputWidth);
101 HAS_MEM_FUNC(InputHeight, HasInputHeight);
105 HAS_MEM_FUNC(Rho, HasRho);
109 HAS_MEM_FUNC(Loss, HasLoss);
113 HAS_MEM_FUNC(Run, HasRunCheck);
117 HAS_MEM_FUNC(Bias, HasBiasCheck);
121 HAS_MEM_FUNC(MaxIterations, HasMaxIterations);
Implementation of the Add module class.
Definition: add.hpp:34
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
static const bool IsBinary
This is true if the layer is a binary layer.
Definition: layer_traits.hpp:35
This is a template class that can provide information about various layers.
Definition: layer_traits.hpp:29
static const bool IsBiasLayer
This is true if the layer is a bias layer.
Definition: layer_traits.hpp:45
#define HAS_ANY_METHOD_FORM(FUNC, NAME)
Constructs a template structure, which will define a boolean static variable, to true, if the passed template parameter, has a member function with the specified name.
Definition: sfinae_utility.hpp:201
static const bool IsOutputLayer
This is true if the layer is an output layer.
Definition: layer_traits.hpp:40