ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::VerifyQuantizedBiasScale Class Reference

Verify the scale of quantized bias node. More...

#include <VerifyQuantizedBiasScale.h>

Collaboration diagram for luci::VerifyQuantizedBiasScale:

Public Member Functions

bool verify (luci::CircleNode *node)
 
- Public Member Functions inherited from luci::CircleNodeVisitor< bool >
virtual ~CircleNodeVisitor ()=default
 
- Public Member Functions inherited from luci::CircleNodeVisitorBase< T >
virtual ~CircleNodeVisitorBase ()=default
 

Static Public Member Functions

static std::shared_ptr< VerifyQuantizedBiasScalecreate ()
 

Detailed Description

Verify the scale of quantized bias node.

Bias of CONV, DCONV, TCONV, FC layers should meet the following condition.

bias scale = input scale * weights scale

Definition at line 36 of file VerifyQuantizedBiasScale.h.

Member Function Documentation

◆ create()

static std::shared_ptr< VerifyQuantizedBiasScale > luci::VerifyQuantizedBiasScale::create ( )
inlinestatic

Definition at line 39 of file VerifyQuantizedBiasScale.h.

40 {
41 return std::make_shared<VerifyQuantizedBiasScale>();
42 };

Referenced by luci::QuantizedModelVerifier::verify().

◆ verify()

bool luci::VerifyQuantizedBiasScale::verify ( luci::CircleNode node)
inline

Definition at line 45 of file VerifyQuantizedBiasScale.h.

45{ return node->accept(this); }
T accept(CircleNodeVisitorBase< T > *) const

References luci::CircleNode::accept().


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