ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locoex::TFLConcatenation Class Referencefinal

CONCATENATION in TensorFlow Lite. More...

#include <TFLNodes.h>

Collaboration diagram for locoex::TFLConcatenation:

Public Member Functions

 TFLConcatenation (uint32_t arity)
 
uint32_t numValues (void) const
 
Nodevalues (uint32_t index) const
 
void values (uint32_t index, Node *node)
 
uint32_t axis (void) const
 
void axis (uint32_t axis)
 
- Public Member Functions inherited from locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >
 VariadicArityNode (uint32_t arity)
 
virtual ~VariadicArityNode ()=default
 
uint32_t arity (void) const final
 
loco::Nodearg (uint32_t n) const final
 
void drop (void) final
 
- Public Member Functions inherited from locoex::TFLNodeImpl< TFLOpcode::CONCATENATION >
virtual ~TFLNodeImpl ()=default
 
uint32_t opnum (void) const final
 
TFLOpcode opcode (void) const final
 
- Public Member Functions inherited from locoex::TFLNode
virtual ~TFLNode ()=default
 
const loco::Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
template<typename T >
accept (TFLNodeVisitorBase< T > *) const
 
template<typename T >
accept (TFLNodeMutableVisitorBase< 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
 
- 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.
 
- Public Member Functions inherited from locoex::TFLNodeMixin< TFLNodeTrait::FusedActFunc >
 TFLNodeMixin ()=default
 
FusedActFunc fusedActivationFunction () const
 
void fusedActivationFunction (FusedActFunc fused_act_fun)
 

Additional Inherited Members

- Protected Member Functions inherited from locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >
loco::Useat (uint32_t n) const
 

Detailed Description

CONCATENATION in TensorFlow Lite.

Definition at line 158 of file TFLNodes.h.

Constructor & Destructor Documentation

◆ TFLConcatenation()

locoex::TFLConcatenation::TFLConcatenation ( uint32_t  arity)
inline

Definition at line 162 of file TFLNodes.h.

162 : VariadicArityNode<TFLNodeImpl<TFLOpcode::CONCATENATION>>(arity)
163 {
164 // TODO Support when arity is 0
165 assert(arity >= 1);
166 }
uint32_t arity(void) const final
Return the number of arguments.

References locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >::arity().

Member Function Documentation

◆ axis() [1/2]

void locoex::TFLConcatenation::axis ( uint32_t  axis)
inline

Definition at line 185 of file TFLNodes.h.

185{ _axis = axis; }
uint32_t axis(void) const
Definition TFLNodes.h:184

References axis().

Referenced by axis().

◆ axis() [2/2]

uint32_t locoex::TFLConcatenation::axis ( void  ) const
inline

Definition at line 184 of file TFLNodes.h.

184{ return _axis; }

Referenced by exo::MergeConcatNodesPass::run().

◆ numValues()

uint32_t locoex::TFLConcatenation::numValues ( void  ) const
inline

Definition at line 169 of file TFLNodes.h.

169{ return arity(); }

References locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >::arity().

Referenced by values(), and values().

◆ values() [1/2]

Node * locoex::TFLConcatenation::values ( uint32_t  index) const
inline

Definition at line 172 of file TFLNodes.h.

173 {
174 assert(index < numValues());
175 return at(index)->node();
176 }
Node * node(void) const
Definition Use.h:58
uint32_t numValues(void) const
Definition TFLNodes.h:169

References locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >::at(), loco::Use::node(), and numValues().

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

◆ values() [2/2]

void locoex::TFLConcatenation::values ( uint32_t  index,
Node node 
)
inline

Definition at line 177 of file TFLNodes.h.

178 {
179 assert(index < numValues());
180 at(index)->node(node);
181 }

References locoex::VariadicArityNode< TFLNodeImpl< TFLOpcode::CONCATENATION > >::at(), loco::Use::node(), and numValues().


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