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

FULLY_CONNECTED in Circle. More...

#include <CircleFullyConnected.h>

Collaboration diagram for luci::CircleFullyConnected:

Public Types

enum class  WeightsFormat { UNDEFINED , DEFAULT , SHUFFLED4x16INT8 , SHUFFLED16x1FLOAT32 }
 

Public Member Functions

loco::Nodeinput (void) const
 
void input (loco::Node *node)
 
loco::Nodeweights (void) const
 
void weights (loco::Node *node)
 
loco::Nodebias (void) const override
 
void bias (loco::Node *node) override
 get the input for bias.
 
WeightsFormat weights_format (void) const
 
void weights_format (WeightsFormat weights_format)
 
bool keep_num_dims (void) const
 
void keep_num_dims (bool keep_num_dims)
 
- Public Member Functions inherited from luci::FixedArityNode< 3, CircleNodeImpl< CircleOpcode::FULLY_CONNECTED > >
 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::FULLY_CONNECTED >
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.
 
- Public Member Functions inherited from luci::CircleNodeMixin< CircleNodeTrait::FusedActFunc >
 CircleNodeMixin ()=default
 
FusedActFunc fusedActivationFunction () const
 
void fusedActivationFunction (FusedActFunc fused_act_fun)
 
- Public Member Functions inherited from luci::CircleNodeMixin< CircleNodeTrait::Bias >
 CircleNodeMixin ()=default
 

Additional Inherited Members

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

Detailed Description

FULLY_CONNECTED in Circle.

Definition at line 32 of file CircleFullyConnected.h.

Member Enumeration Documentation

◆ WeightsFormat

Enumerator
UNDEFINED 
DEFAULT 
SHUFFLED4x16INT8 
SHUFFLED16x1FLOAT32 

Definition at line 38 of file CircleFullyConnected.h.

Member Function Documentation

◆ bias() [1/2]

void luci::CircleFullyConnected::bias ( loco::Node node)
inlineoverridevirtual

◆ bias() [2/2]

loco::Node * luci::CircleFullyConnected::bias ( void  ) const
inlineoverridevirtual

◆ input() [1/2]

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

◆ input() [2/2]

loco::Node * luci::CircleFullyConnected::input ( void  ) const
inline

◆ keep_num_dims() [1/2]

void luci::CircleFullyConnected::keep_num_dims ( bool  keep_num_dims)
inline

Definition at line 62 of file CircleFullyConnected.h.

62{ _keep_num_dims = keep_num_dims; }

References keep_num_dims().

Referenced by keep_num_dims().

◆ keep_num_dims() [2/2]

bool luci::CircleFullyConnected::keep_num_dims ( void  ) const
inline

◆ weights() [1/2]

void luci::CircleFullyConnected::weights ( loco::Node node)
inline

◆ weights() [2/2]

loco::Node * luci::CircleFullyConnected::weights ( void  ) const
inline

◆ weights_format() [1/2]

WeightsFormat luci::CircleFullyConnected::weights_format ( void  ) const
inline

Definition at line 58 of file CircleFullyConnected.h.

58{ return _weights_format; }

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

◆ weights_format() [2/2]

void luci::CircleFullyConnected::weights_format ( WeightsFormat  weights_format)
inline

Definition at line 59 of file CircleFullyConnected.h.

59{ _weights_format = weights_format; }
WeightsFormat weights_format(void) const

References weights_format().

Referenced by weights_format().


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