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

GELU in Circle. More...

#include <CircleGelu.h>

Collaboration diagram for luci::CircleGelu:

Public Member Functions

loco::Nodefeatures (void) const
 
void features (loco::Node *node)
 
bool approximate (void) const
 
void approximate (bool arg)
 
- Public Member Functions inherited from luci::FixedArityNode< 1, CircleNodeImpl< CircleOpcode::GELU > >
 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::GELU >
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< 1, CircleNodeImpl< CircleOpcode::GELU > >
loco::Useat (uint32_t n) const
 

Detailed Description

GELU in Circle.

Definition at line 31 of file CircleGelu.h.

Member Function Documentation

◆ approximate() [1/2]

void luci::CircleGelu::approximate ( bool  arg)
inline

Definition at line 39 of file CircleGelu.h.

39{ _approximate = arg; }
loco::Node * arg(uint32_t n) const final
Access N-th argument node.

References luci::FixedArityNode< 1, CircleNodeImpl< CircleOpcode::GELU > >::arg().

◆ approximate() [2/2]

bool luci::CircleGelu::approximate ( void  ) const
inline

Definition at line 38 of file CircleGelu.h.

38{ return _approximate; }

Referenced by luci::CloneNodeLet< CN::GHIJ >::visit(), and luci::BuiltinOptionsExtractor::visit().

◆ features() [1/2]

void luci::CircleGelu::features ( loco::Node node)
inline

Definition at line 35 of file CircleGelu.h.

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

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

◆ features() [2/2]

loco::Node * luci::CircleGelu::features ( void  ) const
inline

Definition at line 34 of file CircleGelu.h.

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

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


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