LayerTraits< LayerType > Class Template Reference

This is a template class that can provide information about various layers. More...

Static Public Attributes

static const bool IsBiasLayer = false
 This is true if the layer is a bias layer. More...

 
static const bool IsBinary = false
 This is true if the layer is a binary layer. More...

 
static const bool IsConnection = false
 
static const bool IsLSTMLayer = false
 
static const bool IsOutputLayer = false
 This is true if the layer is an output layer. More...

 

Detailed Description


template
<
typename
LayerType
>

class mlpack::ann::LayerTraits< LayerType >

This is a template class that can provide information about various layers.

By default, this class will provide the weakest possible assumptions on layer, and each layer should override values as necessary. If a layer doesn't need to override a value, then there's no need to write a LayerTraits specialization for that class.

Definition at line 29 of file layer_traits.hpp.

Member Data Documentation

◆ IsBiasLayer

const bool IsBiasLayer = false
static

This is true if the layer is a bias layer.

Definition at line 45 of file layer_traits.hpp.

◆ IsBinary

const bool IsBinary = false
static

This is true if the layer is a binary layer.

Definition at line 35 of file layer_traits.hpp.

◆ IsConnection

const bool IsConnection = false
static

Definition at line 55 of file layer_traits.hpp.

◆ IsLSTMLayer

const bool IsLSTMLayer = false
static

Definition at line 50 of file layer_traits.hpp.

◆ IsOutputLayer

const bool IsOutputLayer = false
static

This is true if the layer is an output layer.

Definition at line 40 of file layer_traits.hpp.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-3.3.1/src/mlpack/methods/ann/layer/layer_traits.hpp