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

CAST in Circle. More...

#include <CircleCast.h>

Collaboration diagram for luci::CircleCast:

Public Member Functions

loco::Nodex (void) const
 
void x (loco::Node *node)
 
loco::DataType in_data_type (void) const
 
void in_data_type (loco::DataType it)
 
loco::DataType out_data_type (void) const
 
void out_data_type (loco::DataType ot)
 
- Public Member Functions inherited from luci::FixedArityNode< 1, CircleNodeImpl< CircleOpcode::CAST > >
 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::CAST >
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::CAST > >
loco::Useat (uint32_t n) const
 

Detailed Description

CAST in Circle.

Definition at line 31 of file CircleCast.h.

Member Function Documentation

◆ in_data_type() [1/2]

void luci::CircleCast::in_data_type ( loco::DataType  it)
inline

Definition at line 39 of file CircleCast.h.

39{ _in_data_type = it; }

◆ in_data_type() [2/2]

loco::DataType luci::CircleCast::in_data_type ( void  ) const
inline

Definition at line 38 of file CircleCast.h.

38{ return _in_data_type; }

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

◆ out_data_type() [1/2]

void luci::CircleCast::out_data_type ( loco::DataType  ot)
inline

Definition at line 42 of file CircleCast.h.

42{ _out_data_type = ot; }

◆ out_data_type() [2/2]

loco::DataType luci::CircleCast::out_data_type ( void  ) const
inline

Definition at line 41 of file CircleCast.h.

41{ return _out_data_type; }

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

◆ x() [1/2]

void luci::CircleCast::x ( loco::Node node)
inline

Definition at line 35 of file CircleCast.h.

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

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

◆ x() [2/2]

loco::Node * luci::CircleCast::x ( void  ) const
inline

Definition at line 34 of file CircleCast.h.

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

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


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