ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::VerifyQuantizedNodeType Class Referenceabstract

Verify the data type of quantized node. More...

#include <VerifyQuantizedNodeType.h>

Public Member Functions

virtual bool verify (luci::CircleNode *node)=0
 

Static Public Member Functions

static std::shared_ptr< VerifyQuantizedNodeTypecreate (loco::DataType dtype)
 

Detailed Description

Verify the data type of quantized node.

Targets to verify

  • node's output (i.e., node itself)
  • node's inputs

Definition at line 34 of file VerifyQuantizedNodeType.h.

Member Function Documentation

◆ create()

std::shared_ptr< VerifyQuantizedNodeType > luci::VerifyQuantizedNodeType::create ( loco::DataType  dtype)
static

Definition at line 32 of file VerifyQuantizedNodeType.cpp.

33{
34 if (dtype == loco::DataType::U8)
35 return std::make_shared<VerifyQuantizedNodeU8Type>();
36 else if (dtype == loco::DataType::S16)
37 return std::make_shared<VerifyQuantizedNodeS16Type>();
38 else
39 throw std::domain_error("Not supported Quantized type");
40}

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

◆ verify()


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