My Project
Public Member Functions | List of all members
mlir::quantizer::UniformParamsFromMinMaxSolver Class Reference

#include <UniformSolvers.h>

Public Member Functions

 UniformParamsFromMinMaxSolver (const UniformStorageParams &storageParams, double boundingMin, double boundingMax)
 
bool compute ()
 Performs the computation, returning whether satisfied. More...
 
double getBoundingMin () const
 
double getBoundingMax () const
 
bool isSatisfied () const
 
double getAdjMin () const
 
double getAdjMax () const
 
double getScale () const
 
int64_t getZp () const
 
int getStepCount () const
 
int64_t quantize (double x) const
 
double dequantize (int64_t xq) const
 

Detailed Description

Solves for the uniform quantization scheme parameters delta and z given bounding min/max.

Constructor & Destructor Documentation

◆ UniformParamsFromMinMaxSolver()

mlir::quantizer::UniformParamsFromMinMaxSolver::UniformParamsFromMinMaxSolver ( const UniformStorageParams storageParams,
double  boundingMin,
double  boundingMax 
)
inline

Member Function Documentation

◆ compute()

bool UniformParamsFromMinMaxSolver::compute ( )

Performs the computation, returning whether satisfied.

◆ dequantize()

double UniformParamsFromMinMaxSolver::dequantize ( int64_t  xq) const

◆ getAdjMax()

double mlir::quantizer::UniformParamsFromMinMaxSolver::getAdjMax ( ) const
inline

◆ getAdjMin()

double mlir::quantizer::UniformParamsFromMinMaxSolver::getAdjMin ( ) const
inline

◆ getBoundingMax()

double mlir::quantizer::UniformParamsFromMinMaxSolver::getBoundingMax ( ) const
inline

◆ getBoundingMin()

double mlir::quantizer::UniformParamsFromMinMaxSolver::getBoundingMin ( ) const
inline

◆ getScale()

double mlir::quantizer::UniformParamsFromMinMaxSolver::getScale ( ) const
inline

◆ getStepCount()

int mlir::quantizer::UniformParamsFromMinMaxSolver::getStepCount ( ) const
inline

◆ getZp()

int64_t mlir::quantizer::UniformParamsFromMinMaxSolver::getZp ( ) const
inline

◆ isSatisfied()

bool mlir::quantizer::UniformParamsFromMinMaxSolver::isSatisfied ( ) const
inline

◆ quantize()

int64_t UniformParamsFromMinMaxSolver::quantize ( double  x) const

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