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

ROPE in Circle. More...

#include <CircleRoPE.h>

Collaboration diagram for luci::CircleRoPE:

Public Member Functions

loco::Nodeinput (void) const
 
void input (loco::Node *node)
 
loco::Nodesin_table (void) const
 
void sin_table (loco::Node *node)
 
loco::Nodecos_table (void) const
 
void cos_table (loco::Node *node)
 
RoPEMode mode () const
 
void mode (RoPEMode mode)
 
- Public Member Functions inherited from luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >
 FixedArityNode ()
 
virtual ~FixedArityNode ()=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::ROPE >
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.
 

Additional Inherited Members

- Protected Member Functions inherited from luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >
loco::Useat (uint32_t n) const
 

Detailed Description

ROPE in Circle.

Definition at line 32 of file CircleRoPE.h.

Member Function Documentation

◆ cos_table() [1/2]

void luci::CircleRoPE::cos_table ( loco::Node node)
inline

Definition at line 43 of file CircleRoPE.h.

43{ at(2)->node(node); }
Node * node(void) const
Definition Use.h:58

References luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >::at(), and loco::Use::node().

◆ cos_table() [2/2]

loco::Node * luci::CircleRoPE::cos_table ( void  ) const
inline

Definition at line 42 of file CircleRoPE.h.

42{ return at(2)->node(); }

References luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >::at(), and loco::Use::node().

◆ input() [1/2]

void luci::CircleRoPE::input ( loco::Node node)
inline

◆ input() [2/2]

loco::Node * luci::CircleRoPE::input ( void  ) const
inline
Note
Currently only support FLOAT32 as input node

Definition at line 36 of file CircleRoPE.h.

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

References luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >::at(), and loco::Use::node().

◆ mode() [1/2]

RoPEMode luci::CircleRoPE::mode ( ) const
inline

Definition at line 46 of file CircleRoPE.h.

46{ return _mode; }

Referenced by luci::CloneNode::visit(), and luci::BuiltinOptionsExtractor::visit().

◆ mode() [2/2]

void luci::CircleRoPE::mode ( RoPEMode  mode)
inline

Definition at line 47 of file CircleRoPE.h.

47{ _mode = mode; }
RoPEMode mode() const
Definition CircleRoPE.h:46

References mode().

Referenced by mode().

◆ sin_table() [1/2]

void luci::CircleRoPE::sin_table ( loco::Node node)
inline

◆ sin_table() [2/2]

loco::Node * luci::CircleRoPE::sin_table ( void  ) const
inline

Definition at line 39 of file CircleRoPE.h.

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

References luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::ROPE > >::at(), and loco::Use::node().


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