ONE - On-device Neural Engine
Loading...
Searching...
No Matches
mpqsolver::bisection::VISQErrorApproximator Class Referencefinal

#include <VISQErrorApproximator.h>

Public Member Functions

 VISQErrorApproximator ()=default
 constructor of VISQErrorApproximator
 
void init (const std::string &visq_data_path)
 initiliaze by visq_data_path (throws on failure)
 
float approximate (const std::string &node_name) const
 approximate error introduced while quantizing node into Q8
 

Detailed Description

Definition at line 28 of file VISQErrorApproximator.h.

Constructor & Destructor Documentation

◆ VISQErrorApproximator()

mpqsolver::bisection::VISQErrorApproximator::VISQErrorApproximator ( )
default

constructor of VISQErrorApproximator

Member Function Documentation

◆ approximate()

float VISQErrorApproximator::approximate ( const std::string &  node_name) const

approximate error introduced while quantizing node into Q8

Definition at line 54 of file VISQErrorApproximator.cpp.

55{
56 auto iter = _layer_errors.find(node_name);
57 if (iter == _layer_errors.end())
58 {
59 return 0.f;
60 }
61
62 return iter->second;
63}

◆ init()

void VISQErrorApproximator::init ( const std::string &  visq_data_path)

initiliaze by visq_data_path (throws on failure)

Definition at line 24 of file VISQErrorApproximator.cpp.

25{
26 // read file
27 std::ifstream file(visq_data_path);
28 init(file);
29}
void init(const std::string &visq_data_path)
initiliaze by visq_data_path (throws on failure)

References init().

Referenced by init().


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