ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::BiasAdd< Domain::Feature > Class Referencefinal

Add Feature and Bias along "depth" axis. More...

#include <Nodes.h>

Collaboration diagram for loco::BiasAdd< Domain::Feature >:

Public Member Functions

 BiasAdd ()=default
 
Nodevalue (void) const
 
void value (Node *node)
 
Nodebias (void) const
 
void bias (Node *node)
 
- Public Member Functions inherited from loco::CanonicalNodeDef< CanonicalOpcode::FeatureBiasAdd, FixedArity< 2 >::Mixin >
virtual ~CanonicalNodeDef ()=default
 
uint32_t opnum (void) const final
 
CanonicalOpcode opcode (void) const final
 
- Public Member Functions inherited from loco::CanonicalNode
virtual ~CanonicalNode ()=default
 
const Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
template<typename T >
accept (CanonicalNodeVisitorBase< T > *) const
 
template<typename T >
accept (CanonicalNodeMutableVisitorBase< T > *)
 
- Public Member Functions inherited from loco::Node
 Node ()=default
 
 Node (const Node &)=delete
 
 Node (Node &&)=delete
 
virtual ~Node ()
 
Graphgraph (void)
 
const Graphgraph (void) const
 
virtual uint32_t arity (void) const =0
 Return the number of arguments.
 
virtual Nodearg (uint32_t N) const =0
 Access N-th argument node.
 
virtual void drop (void)=0
 Drop all the reference of arguments.
 
- Public Member Functions inherited from loco::AnnotatedItem< NodeAnnotation >
 AnnotatedItem ()=default
 
virtual ~AnnotatedItem ()=default
 
const T * annot (void) const
 Retrieve a stored annotation of type T.
 
void annot (std::unique_ptr< T > &&p)
 Attach or remove a new annotation of type T.
 

Detailed Description

Add Feature and Bias along "depth" axis.

for each valid feature index (b, ch, row, col) out(b, ch, row, col) = value(b, ch, row, col) + bias(ch)

Definition at line 815 of file Nodes.h.

Constructor & Destructor Documentation

◆ BiasAdd()

loco::BiasAdd< Domain::Feature >::BiasAdd ( )
default

Member Function Documentation

◆ bias() [1/2]

void loco::BiasAdd< Domain::Feature >::bias ( Node node)
inline

Definition at line 826 of file Nodes.h.

826{ return at(1)->node(node); }

◆ bias() [2/2]

Node * loco::BiasAdd< Domain::Feature >::bias ( void  ) const
inline

Definition at line 825 of file Nodes.h.

825{ return at(1)->node(); }

Referenced by exo::FeatureBiasAddConverter::convert().

◆ value() [1/2]

void loco::BiasAdd< Domain::Feature >::value ( Node node)
inline

Definition at line 823 of file Nodes.h.

823{ return at(0)->node(node); }

◆ value() [2/2]

Node * loco::BiasAdd< Domain::Feature >::value ( void  ) const
inline

Definition at line 822 of file Nodes.h.

822{ return at(0)->node(); }

Referenced by exo::FeatureBiasAddConverter::convert().


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