ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::VariadicArityNode< Base > Class Template Reference

Nodes with the variadic inputs. More...

#include <VariadicArityNode.h>

Collaboration diagram for luci::VariadicArityNode< Base >:

Public Member Functions

 VariadicArityNode (uint32_t arity)
 
virtual ~VariadicArityNode ()=default
 
uint32_t arity (void) const final
 
loco::Nodearg (uint32_t n) const final
 
void drop (void) final
 

Protected Member Functions

loco::Useat (uint32_t n) const
 

Detailed Description

template<typename Base>
class luci::VariadicArityNode< Base >

Nodes with the variadic inputs.

Definition at line 33 of file VariadicArityNode.h.

Constructor & Destructor Documentation

◆ VariadicArityNode()

template<typename Base >
luci::VariadicArityNode< Base >::VariadicArityNode ( uint32_t  arity)
inline

Definition at line 36 of file VariadicArityNode.h.

37 {
38 for (uint32_t n = 0; n < arity; ++n)
39 {
40 _args.push_back(std::make_unique<loco::Use>(this));
41 }
42 };
uint32_t arity(void) const final

References luci::VariadicArityNode< Base >::arity().

◆ ~VariadicArityNode()

template<typename Base >
virtual luci::VariadicArityNode< Base >::~VariadicArityNode ( )
virtualdefault

Member Function Documentation

◆ arg()

template<typename Base >
loco::Node * luci::VariadicArityNode< Base >::arg ( uint32_t  n) const
inlinefinal

Definition at line 49 of file VariadicArityNode.h.

49{ return _args.at(n)->node(); }

◆ arity()

template<typename Base >
uint32_t luci::VariadicArityNode< Base >::arity ( void  ) const
inlinefinal

Definition at line 47 of file VariadicArityNode.h.

47{ return _args.size(); }

Referenced by luci::VariadicArityNode< Base >::VariadicArityNode(), and luci::CloneNodeLet< CN::ABC >::visit().

◆ at()

template<typename Base >
loco::Use * luci::VariadicArityNode< Base >::at ( uint32_t  n) const
inlineprotected

Definition at line 61 of file VariadicArityNode.h.

61{ return _args.at(n).get(); }

◆ drop()

template<typename Base >
void luci::VariadicArityNode< Base >::drop ( void  )
inlinefinal

Definition at line 51 of file VariadicArityNode.h.

52 {
53 for (uint32_t n = 0; n < _args.size(); ++n)
54 {
55 _args.at(n)->node(nullptr);
56 }
57 }

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