ParametersVisitor exposes the parameters set of the given module and stores the parameters set into the given matrix.
More...
|
template<typename T , typename P > |
std::enable_if< !HasParametersCheck< T, P &(T::*)()>::value, void >::type | LayerParameters (T *layer, P &output) const |
| Do not set the parameters set if the module doesn't implement the Parameters() function. More...
|
|
template<typename T , typename P > |
std::enable_if< HasParametersCheck< T, P &(T::*)()>::value, void >::type | LayerParameters (T *layer, P &output) const |
| Set the parameters set if the module implements the Parameters() function. More...
|
|
ParametersVisitor exposes the parameters set of the given module and stores the parameters set into the given matrix.
Definition at line 28 of file parameters_visitor.hpp.
mlpack::ann::ParametersVisitor::ParametersVisitor |
( |
arma::mat && |
parameters | ) |
|
Store the parameters set into the given parameters matrix.
template<typename T , typename P >
std::enable_if< !HasParametersCheck<T, P&(T::*)()>::value, void>::type mlpack::ann::ParametersVisitor::LayerParameters |
( |
T * |
layer, |
|
|
P & |
output |
|
) |
| const |
|
private |
Do not set the parameters set if the module doesn't implement the Parameters() function.
template<typename T , typename P >
std::enable_if< HasParametersCheck<T, P&(T::*)()>::value, void>::type mlpack::ann::ParametersVisitor::LayerParameters |
( |
T * |
layer, |
|
|
P & |
output |
|
) |
| const |
|
private |
Set the parameters set if the module implements the Parameters() function.
template<typename LayerType >
void mlpack::ann::ParametersVisitor::operator() |
( |
LayerType * |
layer | ) |
const |
arma::mat&& mlpack::ann::ParametersVisitor::parameters |
|
private |
The documentation for this class was generated from the following file: