CopyVisitor< CustomLayers > Class Template Reference

This visitor is to support copy constructor for neural network module. More...

Inheritance diagram for CopyVisitor< CustomLayers >:

Public Member Functions

template
<
typename
LayerType
>
LayerTypes< CustomLayers... > operator() (LayerType *) const
 
LayerTypes< CustomLayers... > operator() (MoreTypes) const
 

Detailed Description


template<typename... CustomLayers>
class mlpack::ann::CopyVisitor< CustomLayers >

This visitor is to support copy constructor for neural network module.

We want a layer-wise copy rather than simple duplicate the pointer.

Definition at line 26 of file copy_visitor.hpp.

Member Function Documentation

◆ operator()() [1/2]

LayerTypes<CustomLayers...> operator() ( LayerType *  ) const

◆ operator()() [2/2]

LayerTypes<CustomLayers...> operator() ( MoreTypes  ) const

The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/methods/ann/visitor/copy_visitor.hpp