MLIR 22.0.0git
FakeQuantSupport.cpp File Reference

Go to the source code of this file.

Functions

static bool getDefaultStorageParams (unsigned numBits, bool narrowRange, bool isSigned, MLIRContext *ctx, Type &storageType, int64_t &qmin, int64_t &qmax)
static void getNudgedScaleAndZeroPoint (int64_t qmin, int64_t qmax, double rmin, double rmax, double &scale, int64_t &nudgedZeroPoint)

Function Documentation

◆ getDefaultStorageParams()

bool getDefaultStorageParams ( unsigned numBits,
bool narrowRange,
bool isSigned,
MLIRContext * ctx,
Type & storageType,
int64_t & qmin,
int64_t & qmax )
static

◆ getNudgedScaleAndZeroPoint()

void getNudgedScaleAndZeroPoint ( int64_t qmin,
int64_t qmax,
double rmin,
double rmax,
double & scale,
int64_t & nudgedZeroPoint )
static