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

FAKE_QUANT in Circle. More...

#include <CircleFakeQuant.h>

Collaboration diagram for luci::CircleFakeQuant:

Public Member Functions

loco::Nodeinputs (void) const
 
void inputs (loco::Node *node)
 
float min (void) const
 
void min (float min)
 
float max (void) const
 
void max (float max)
 
int32_t num_bits (void) const
 
void num_bits (int32_t num_bits)
 
bool narrow_range (void) const
 
void narrow_range (bool narrow_range)
 
- Public Member Functions inherited from luci::FixedArityNode< 1, CircleNodeImpl< CircleOpcode::FAKE_QUANT > >
 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::FAKE_QUANT >
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::FAKE_QUANT > >
loco::Useat (uint32_t n) const
 

Detailed Description

FAKE_QUANT in Circle.

Note
'inputs' came from TF.quantize.fake_quant_from_min_max_vars

Definition at line 32 of file CircleFakeQuant.h.

Member Function Documentation

◆ inputs() [1/2]

void luci::CircleFakeQuant::inputs ( loco::Node node)
inline

◆ inputs() [2/2]

loco::Node * luci::CircleFakeQuant::inputs ( void  ) const
inline

◆ max() [1/2]

void luci::CircleFakeQuant::max ( float  max)
inline

Definition at line 43 of file CircleFakeQuant.h.

43{ _max = max; }
float max(void) const

References max().

Referenced by max().

◆ max() [2/2]

float luci::CircleFakeQuant::max ( void  ) const
inline

Definition at line 42 of file CircleFakeQuant.h.

42{ return _max; }

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

◆ min() [1/2]

void luci::CircleFakeQuant::min ( float  min)
inline

Definition at line 40 of file CircleFakeQuant.h.

40{ _min = min; }
float min(void) const

References min().

Referenced by min().

◆ min() [2/2]

float luci::CircleFakeQuant::min ( void  ) const
inline

Definition at line 39 of file CircleFakeQuant.h.

39{ return _min; }

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

◆ narrow_range() [1/2]

void luci::CircleFakeQuant::narrow_range ( bool  narrow_range)
inline

Definition at line 49 of file CircleFakeQuant.h.

49{ _narrow_range = narrow_range; }
bool narrow_range(void) const

References narrow_range().

Referenced by narrow_range().

◆ narrow_range() [2/2]

bool luci::CircleFakeQuant::narrow_range ( void  ) const
inline

Definition at line 48 of file CircleFakeQuant.h.

48{ return _narrow_range; }

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

◆ num_bits() [1/2]

void luci::CircleFakeQuant::num_bits ( int32_t  num_bits)
inline

Definition at line 46 of file CircleFakeQuant.h.

46{ _num_bits = num_bits; }
int32_t num_bits(void) const

References num_bits().

Referenced by num_bits().

◆ num_bits() [2/2]

int32_t luci::CircleFakeQuant::num_bits ( void  ) const
inline

Definition at line 45 of file CircleFakeQuant.h.

45{ return _num_bits; }

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


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