OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
layer.h File Reference

Go to the source code of this file.

Classes

class  opennn::Layer
 Abstract base class for all OpenNN layers; orchestrates operators and shape propagation. More...
 

Namespaces

namespace  opennn
 

Enumerations

enum class  opennn::LayerType {
  opennn::Addition , opennn::Bounding , opennn::Convolutional , opennn::ConvolutionalRelu ,
  opennn::Dense , opennn::DenseRelu , opennn::Embedding , opennn::Flatten ,
  opennn::MultiHeadAttention , opennn::Normalization3d , opennn::Pooling , opennn::Pooling3d ,
  opennn::Recurrent , opennn::Scaling , opennn::Unscaling
}
 Identifier of every concrete layer subclass shipped with OpenNN. More...
 

Functions

const EnumMap< LayerType > & opennn::layer_type_map ()
 Returns the bidirectional mapping between LayerType values and their string names.
 
const string & opennn::layer_type_to_string (LayerType type)
 Returns the string name associated with the given LayerType.
 
LayerType opennn::string_to_layer_type (const string &name)
 Returns the LayerType corresponding to the given string name.
 
void opennn::check_rank (const Shape &shape, initializer_list< int > allowed, const char *layer, const char *what)
 Throws if shape rank is not one of allowed.