mlpack
|
This visitor is to support copy constructor for neural network module. More...
#include <copy_visitor.hpp>
Public Member Functions | |
template<typename LayerType > | |
LayerTypes< CustomLayers... > | operator() (LayerType *) const |
LayerTypes< CustomLayers... > | operator() (MoreTypes) const |
This visitor is to support copy constructor for neural network module.
We want a layer-wise copy rather than simple duplicate the pointer.