Tenncor
Public Member Functions | Protected Member Functions | List of all members
layr::iLayer Struct Referenceabstract

#include <layer.hpp>

Inheritance diagram for layr::iLayer:
Inheritance graph
[legend]

Public Member Functions

virtual ~iLayer (void)=default
 
iLayerclone (std::string label_prefix="") const
 Return deep copy of this layer with prefixed label. More...
 
virtual size_t get_ninput (void) const =0
 Return input value of the expected input (first dimension) More...
 
virtual size_t get_noutput (void) const =0
 Return output value of the expected output (first dimension) More...
 
virtual std::string get_ltype (void) const =0
 Return the layer type which is also the tag key of tagged contents. More...
 
virtual std::string get_label (void) const =0
 Return the raw layer label. More...
 
virtual teq::TensptrsT get_contents (void) const =0
 Return all internal tensors representing the layer. More...
 
virtual NodeptrT connect (NodeptrT input) const =0
 Return the root of the graph that connects input with internal tensors. More...
 

Protected Member Functions

virtual iLayerclone_impl (const std::string &label_prefix) const =0
 
void tag (teq::TensptrT tensor, LayerId subs) const
 
void recursive_tag (teq::TensptrT root, teq::TensSetT ignores, LayerId subs) const
 

Detailed Description

Layer interface defining io, content and metadata getters as well as the connector

Constructor & Destructor Documentation

◆ ~iLayer()

virtual layr::iLayer::~iLayer ( void  )
virtualdefault

Member Function Documentation

◆ clone()

iLayer* layr::iLayer::clone ( std::string  label_prefix = "") const
inline

Return deep copy of this layer with prefixed label.

◆ clone_impl()

virtual iLayer* layr::iLayer::clone_impl ( const std::string &  label_prefix) const
protectedpure virtual

◆ connect()

virtual NodeptrT layr::iLayer::connect ( NodeptrT  input) const
pure virtual

Return the root of the graph that connects input with internal tensors.

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ get_contents()

virtual teq::TensptrsT layr::iLayer::get_contents ( void  ) const
pure virtual

Return all internal tensors representing the layer.

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ get_label()

virtual std::string layr::iLayer::get_label ( void  ) const
pure virtual

Return the raw layer label.

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ get_ltype()

virtual std::string layr::iLayer::get_ltype ( void  ) const
pure virtual

Return the layer type which is also the tag key of tagged contents.

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ get_ninput()

virtual size_t layr::iLayer::get_ninput ( void  ) const
pure virtual

Return input value of the expected input (first dimension)

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ get_noutput()

virtual size_t layr::iLayer::get_noutput ( void  ) const
pure virtual

Return output value of the expected output (first dimension)

Implemented in layr::ULayer, layr::Conv, layr::Dense, layr::RBM, and layr::SequentialModel.

◆ recursive_tag()

void layr::iLayer::recursive_tag ( teq::TensptrT  root,
teq::TensSetT  ignores,
LayerId  subs 
) const
protected

◆ tag()

void layr::iLayer::tag ( teq::TensptrT  tensor,
LayerId  subs 
) const
protected

The documentation for this struct was generated from the following file: