MLIR
20.0.0git
|
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
#include "mlir/Dialect/Quant/Utils/FakeQuantSupport.h"
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) |
|
static |
Definition at line 15 of file FakeQuantSupport.cpp.
References mlir::get(), max(), and min().
Referenced by mlir::quant::fakeQuantAttrsToType().
|
static |
Definition at line 66 of file FakeQuantSupport.cpp.
References mlir::presburger::abs(), and mlir::presburger::round().
Referenced by mlir::quant::fakeQuantAttrsToType().