mlpack
copy_visitor.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_METHODS_ANN_VISITOR_COPY_VISITOR_HPP
13 #define MLPACK_METHODS_ANN_VISITOR_COPY_VISITOR_HPP
14 
16 #include <boost/variant.hpp>
17 
18 namespace mlpack {
19 namespace ann {
20 
25 template <typename... CustomLayers>
26 class CopyVisitor : public boost::static_visitor<LayerTypes<CustomLayers...> >
27 {
28  public:
29  template <typename LayerType>
30  LayerTypes<CustomLayers...> operator()(LayerType*) const;
31 
32  LayerTypes<CustomLayers...> operator()(MoreTypes) const;
33 };
34 
35 } // namespace ann
36 } // namespace mlpack
37 
38 // Include implementation
39 #include "copy_visitor_impl.hpp"
40 #endif
41 
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
This visitor is to support copy constructor for neural network module.
Definition: copy_visitor.hpp:26