Tenncor
Public Member Functions | Private Member Functions | Private Attributes | List of all members
layr::Dense Struct Referencefinal

Layer implementation to apply fully_connect functions to weight and optional bias. More...

#include <dense.hpp>

Inheritance diagram for layr::Dense:
Inheritance graph
[legend]
Collaboration diagram for layr::Dense:
Collaboration graph
[legend]

Public Member Functions

 Dense (teq::DimT nunits, teq::DimT indim, layr::InitF< PybindT > weight_init, layr::InitF< PybindT > bias_init, const std::string &label)
 
 Dense (NodeptrT weight, NodeptrT bias, std::string label)
 
 Dense (const Dense &other, std::string label_prefix="")
 
Denseoperator= (const Dense &other)
 
 Dense (Dense &&other)=default
 
Denseoperator= (Dense &&other)=default
 
Denseclone (std::string label_prefix="") const
 Return deep copy of this layer with prefixed label. More...
 
size_t get_ninput (void) const override
 Implementation of iLayer. More...
 
size_t get_noutput (void) const override
 Implementation of iLayer. More...
 
std::string get_ltype (void) const override
 Implementation of iLayer. More...
 
std::string get_label (void) const override
 Implementation of iLayer. More...
 
teq::TensptrsT get_contents (void) const override
 Implementation of iLayer. More...
 
NodeptrT connect (NodeptrT input) const override
 Implementation of iLayer. More...
 
- Public Member Functions inherited from layr::iLayer
virtual ~iLayer (void)=default
 
iLayerclone (std::string label_prefix="") const
 Return deep copy of this layer with prefixed label. More...
 

Private Member Functions

iLayerclone_impl (const std::string &label_prefix) const override
 
void copy_helper (const Dense &other, std::string label_prefix="")
 

Private Attributes

std::string label_
 
NodeptrT weight_
 
NodeptrT bias_
 

Additional Inherited Members

- Protected Member Functions inherited from layr::iLayer
void tag (teq::TensptrT tensor, LayerId subs) const
 
void recursive_tag (teq::TensptrT root, teq::TensSetT ignores, LayerId subs) const
 

Detailed Description

Layer implementation to apply fully_connect functions to weight and optional bias.

Constructor & Destructor Documentation

◆ Dense() [1/4]

layr::Dense::Dense ( teq::DimT  nunits,
teq::DimT  indim,
layr::InitF< PybindT >  weight_init,
layr::InitF< PybindT >  bias_init,
const std::string &  label 
)
inline

◆ Dense() [2/4]

layr::Dense::Dense ( NodeptrT  weight,
NodeptrT  bias,
std::string  label 
)
inline

◆ Dense() [3/4]

layr::Dense::Dense ( const Dense other,
std::string  label_prefix = "" 
)
inline

◆ Dense() [4/4]

layr::Dense::Dense ( Dense &&  other)
default

Member Function Documentation

◆ clone()

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

Return deep copy of this layer with prefixed label.

◆ clone_impl()

iLayer* layr::Dense::clone_impl ( const std::string &  label_prefix) const
inlineoverrideprivatevirtual

Implements layr::iLayer.

◆ connect()

NodeptrT layr::Dense::connect ( NodeptrT  input) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ copy_helper()

void layr::Dense::copy_helper ( const Dense other,
std::string  label_prefix = "" 
)
inlineprivate

◆ get_contents()

teq::TensptrsT layr::Dense::get_contents ( void  ) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ get_label()

std::string layr::Dense::get_label ( void  ) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ get_ltype()

std::string layr::Dense::get_ltype ( void  ) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ get_ninput()

size_t layr::Dense::get_ninput ( void  ) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ get_noutput()

size_t layr::Dense::get_noutput ( void  ) const
inlineoverridevirtual

Implementation of iLayer.

Implements layr::iLayer.

◆ operator=() [1/2]

Dense& layr::Dense::operator= ( const Dense other)
inline

◆ operator=() [2/2]

Dense& layr::Dense::operator= ( Dense &&  other)
default

Member Data Documentation

◆ bias_

NodeptrT layr::Dense::bias_
private

◆ label_

std::string layr::Dense::label_
private

◆ weight_

NodeptrT layr::Dense::weight_
private

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