14 #ifndef MLIR_QUANTIZER_SUPPORT_UNIFORMSOLVERS_H 15 #define MLIR_QUANTIZER_SUPPORT_UNIFORMSOLVERS_H 41 double boundingMin,
double boundingMax)
42 : storageParams(storageParams), boundingMin(boundingMin),
43 boundingMax(boundingMax) {}
55 int64_t
getZp()
const {
return zp; }
59 int64_t quantize(
double x)
const;
60 double dequantize(int64_t xq)
const;
64 const double boundingMin;
65 const double boundingMax;
69 double adjMin = std::numeric_limits<double>::quiet_NaN();
70 double adjMax = std::numeric_limits<double>::quiet_NaN();
71 double delta = std::numeric_limits<double>::quiet_NaN();
74 bool satisfied =
false;
77 llvm::raw_ostream &
operator<<(llvm::raw_ostream &os,
80 llvm::raw_ostream &
operator<<(llvm::raw_ostream &os,
86 #endif // MLIR_QUANTIZER_SUPPORT_UNIFORMSOLVERS_H Definition: InferTypeOpInterface.cpp:20
Definition: PassRegistry.cpp:413
std::ostream & operator<<(std::ostream &out, const llvm::Twine &twine)
Definition: DebugStringHelper.h:36