ONE - On-device Neural Engine
Loading...
Searching...
No Matches
moco::TFConcatV2 Class Referencefinal

#include <TFConcatV2.h>

Collaboration diagram for moco::TFConcatV2:

Public Member Functions

 TFConcatV2 (uint32_t arity)
 
uint32_t num_values (void) const
 
Nodevalues (uint32_t index) const
 
void values (uint32_t index, Node *node)
 
Nodeaxis (void) const
 
void axis (Node *node)
 
- Public Member Functions inherited from moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >
 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 moco::TFNodeImpl< TFOpcode::ConcatV2 >
virtual ~TFNodeImpl ()=default
 
uint32_t opnum (void) const final
 
TFOpcode opcode (void) const final
 
- Public Member Functions inherited from moco::TFNode
virtual ~TFNode ()=default
 
const loco::Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
template<typename T >
accept (TFNodeVisitorBase< T > *) const
 
template<typename T >
accept (TFNodeMutableVisitorBase< T > *)
 
NodeName name (void) const
 
void name (const NodeName &name)
 
- 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.
 

Additional Inherited Members

- Protected Member Functions inherited from moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >
loco::Useat (uint32_t n) const
 

Detailed Description

Note
TFConcatV2 corresponds to the following GraphDef

Definition at line 55 of file TFConcatV2.h.

Constructor & Destructor Documentation

◆ TFConcatV2()

moco::TFConcatV2::TFConcatV2 ( uint32_t  arity)
inline

Definition at line 58 of file TFConcatV2.h.

58 : VariadicArityNode<TFNodeImpl<TFOpcode::ConcatV2>>(arity + 1)
59 {
60 // we add +1 for axis of VariadicArityNode ctor
61 // at least one value is required
62 assert(arity >= 1);
63 }
uint32_t arity(void) const final
Return the number of arguments.

References moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >::arity().

Member Function Documentation

◆ axis() [1/2]

void moco::TFConcatV2::axis ( Node node)
inline

Definition at line 85 of file TFConcatV2.h.

85{ at(num_values())->node(node); }
Node * node(void) const
Definition Use.h:58
uint32_t num_values(void) const
Definition TFConcatV2.h:66

References moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >::at(), loco::Use::node(), and num_values().

◆ axis() [2/2]

Node * moco::TFConcatV2::axis ( void  ) const
inline

◆ num_values()

uint32_t moco::TFConcatV2::num_values ( void  ) const
inline

Definition at line 66 of file TFConcatV2.h.

67 {
68 // last one is for axis
69 return arity() - 1;
70 }

References moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >::arity().

Referenced by axis(), axis(), values(), and values().

◆ values() [1/2]

Node * moco::TFConcatV2::values ( uint32_t  index) const
inline

Definition at line 73 of file TFConcatV2.h.

74 {
75 assert(index < num_values());
76 return at(index)->node();
77 }
loco::GraphInputIndex index(const TFPlaceholder *node)
Definition TFNode.cpp:54

References moco::VariadicArityNode< TFNodeImpl< TFOpcode::ConcatV2 > >::at(), moco::index(), loco::Use::node(), and num_values().

◆ values() [2/2]

void moco::TFConcatV2::values ( uint32_t  index,
Node node 
)
inline

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