Home
last modified time | relevance | path

Searched refs:nudgedZeroPoint (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/Quant/Utils/
DFakeQuantSupport.cpp68 int64_t &nudgedZeroPoint) { in getNudgedScaleAndZeroPoint() argument
93 nudgedZeroPoint = 0; in getNudgedScaleAndZeroPoint()
95 nudgedZeroPoint = qmin; in getNudgedScaleAndZeroPoint()
97 nudgedZeroPoint = qmax; in getNudgedScaleAndZeroPoint()
99 nudgedZeroPoint = round(zeroPointDouble); in getNudgedScaleAndZeroPoint()
103 assert(nudgedZeroPoint >= qmin); in getNudgedScaleAndZeroPoint()
104 assert(nudgedZeroPoint <= qmax); in getNudgedScaleAndZeroPoint()
131 int64_t nudgedZeroPoint; in fakeQuantAttrsToType() local
132 getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint); in fakeQuantAttrsToType()
135 scale, nudgedZeroPoint, qmin, qmax, in fakeQuantAttrsToType()
[all …]