SetInputWidthVisitor updates the input width parameter with the given input width.
More...
|
template<typename T > |
std::enable_if< !HasInputWidth< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type | LayerInputWidth (T *layer) const |
| Do nothing if the module doesn't implement the InputWidth() or Model() function. More...
|
|
template<typename T > |
std::enable_if< HasInputWidth< T, size_t &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type | LayerInputWidth (T *layer) const |
| Update the input width if the module implements the InputWidth() function. More...
|
|
template<typename T > |
std::enable_if< !HasInputWidth< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type | LayerInputWidth (T *layer) const |
| Update the input width if the module implements the Model() function. More...
|
|
template<typename T > |
std::enable_if< HasInputWidth< T, size_t &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, bool >::type | LayerInputWidth (T *layer) const |
| Update the input width if the module implements the InputWidth() or Model() function. More...
|
|
SetInputWidthVisitor updates the input width parameter with the given input width.
Definition at line 28 of file set_input_width_visitor.hpp.
mlpack::ann::SetInputWidthVisitor::SetInputWidthVisitor |
( |
const size_t |
inputWidth = 0 , |
|
|
const bool |
reset = false |
|
) |
| |
Update the input width parameter with the given input width.
template<typename T >
std::enable_if< !HasInputWidth<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputWidthVisitor::LayerInputWidth |
( |
T * |
layer | ) |
const |
|
private |
Do nothing if the module doesn't implement the InputWidth() or Model() function.
template<typename T >
std::enable_if< HasInputWidth<T, size_t&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputWidthVisitor::LayerInputWidth |
( |
T * |
layer | ) |
const |
|
private |
Update the input width if the module implements the InputWidth() function.
template<typename T >
std::enable_if< !HasInputWidth<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputWidthVisitor::LayerInputWidth |
( |
T * |
layer | ) |
const |
|
private |
Update the input width if the module implements the Model() function.
template<typename T >
std::enable_if< HasInputWidth<T, size_t&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, bool>::type mlpack::ann::SetInputWidthVisitor::LayerInputWidth |
( |
T * |
layer | ) |
const |
|
private |
Update the input width if the module implements the InputWidth() or Model() function.
template<typename LayerType >
bool mlpack::ann::SetInputWidthVisitor::operator() |
( |
LayerType * |
layer | ) |
const |
Update the input width parameter.
size_t mlpack::ann::SetInputWidthVisitor::inputWidth |
|
private |
bool mlpack::ann::SetInputWidthVisitor::reset |
|
private |
The documentation for this class was generated from the following file: