mlpack
Public Member Functions | List of all members
mlpack::ann::WeightSizeVisitor Class Reference

WeightSizeVisitor returns the number of weights of the given module. More...

#include <weight_size_visitor.hpp>

Inheritance diagram for mlpack::ann::WeightSizeVisitor:
Inheritance graph
[legend]
Collaboration diagram for mlpack::ann::WeightSizeVisitor:
Collaboration graph
[legend]

Public Member Functions

template<typename LayerType >
size_t operator() (LayerType *layer) const
 Return the number of weights. More...
 
size_t operator() (MoreTypes layer) const
 

Detailed Description

WeightSizeVisitor returns the number of weights of the given module.

Member Function Documentation

◆ operator()()

template<typename LayerType >
size_t mlpack::ann::WeightSizeVisitor::operator() ( LayerType *  layer) const
inline

Return the number of weights.

WeightSizeVisitor visitor class.


The documentation for this class was generated from the following files: