ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::CircleConcatenation Class Referencefinal

CONCATENATION in Circle. More...

#include <CircleConcatenation.h>

Collaboration diagram for luci::CircleConcatenation:

Public Member Functions

 CircleConcatenation (uint32_t arity)
 
uint32_t numValues (void) const
 
Nodevalues (uint32_t index) const
 
void values (uint32_t index, Node *node)
 
int32_t axis (void) const
 
void axis (int32_t axis)
 
- Public Member Functions inherited from luci::VariadicArityNode< CircleNodeImpl< CircleOpcode::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 luci::CircleNodeImpl< CircleOpcode::CONCATENATION >
virtual ~CircleNodeImpl ()=default
 
uint32_t opnum (void) const final
 
CircleOpcode opcode (void) const final
 
- Public Member Functions inherited from luci::CircleNode
virtual ~CircleNode ()=default
 
const loco::Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
template<typename T >
accept (CircleNodeVisitorBase< T > *) const
 
template<typename T >
accept (CircleNodeMutableVisitorBase< T > *)
 
NodeName name (void) const
 
void name (const NodeName &name)
 
CircleQuantParamquantparam (void) const
 
void quantparam (std::unique_ptr< CircleQuantParam > &&quantparam)
 
SparsityParamsparsityparam (void) const
 
void sparsityparam (std::unique_ptr< SparsityParam > &&sparsityparam)
 
ShapeStatus shape_status (void) const
 
void shape_status (ShapeStatus ss)
 
int32_t op_version (void) const
 
void op_version (int32_t op_version)
 
- 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 luci::CircleNodeMixin< CircleNodeTrait::FusedActFunc >
 CircleNodeMixin ()=default
 
FusedActFunc fusedActivationFunction () const
 
void fusedActivationFunction (FusedActFunc fused_act_fun)
 

Additional Inherited Members

- Protected Member Functions inherited from luci::VariadicArityNode< CircleNodeImpl< CircleOpcode::CONCATENATION > >
loco::Useat (uint32_t n) const
 

Detailed Description

CONCATENATION in Circle.

Definition at line 35 of file CircleConcatenation.h.

Constructor & Destructor Documentation

◆ CircleConcatenation()

luci::CircleConcatenation::CircleConcatenation ( uint32_t  arity)
inline

Definition at line 40 of file CircleConcatenation.h.

41 : VariadicArityNode<CircleNodeImpl<CircleOpcode::CONCATENATION>>(arity)
42 {
43 // TODO Support when arity is 0
44 assert(arity >= 1);
45 }
uint32_t arity(void) const final
Return the number of arguments.

References luci::VariadicArityNode< CircleNodeImpl< CircleOpcode::CONCATENATION > >::arity().

Member Function Documentation

◆ axis() [1/2]

void luci::CircleConcatenation::axis ( int32_t  axis)
inline

Definition at line 64 of file CircleConcatenation.h.

64{ _axis = axis; }

References axis().

Referenced by axis().

◆ axis() [2/2]

int32_t luci::CircleConcatenation::axis ( void  ) const
inline

◆ numValues()

uint32_t luci::CircleConcatenation::numValues ( void  ) const
inline

◆ values() [1/2]

Node * luci::CircleConcatenation::values ( uint32_t  index) const
inline

Definition at line 51 of file CircleConcatenation.h.

52 {
53 assert(index < numValues());
54 return at(index)->node();
55 }
Node * node(void) const
Definition Use.h:58
uint32_t numValues(void) const

References luci::VariadicArityNode< CircleNodeImpl< CircleOpcode::CONCATENATION > >::at(), loco::Use::node(), and numValues().

Referenced by luci::sinf::Algorithm::visit().

◆ values() [2/2]

void luci::CircleConcatenation::values ( uint32_t  index,
Node node 
)
inline

Definition at line 56 of file CircleConcatenation.h.

57 {
58 assert(index < numValues());
59 at(index)->node(node);
60 }

References luci::VariadicArityNode< CircleNodeImpl< CircleOpcode::CONCATENATION > >::at(), loco::Use::node(), and numValues().


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