Searched refs:zero_point (Results 1 – 2 of 2) sorted by relevance
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | conv2d_v1_2.mod.py | 196 zero_point = 128 variable 197 i9 = Input("op1", ("TENSOR_QUANT8_ASYMM", [2, 2, 4, 1], scale, zero_point)) 198 f9 = Parameter("op2", ("TENSOR_QUANT8_ASYMM", [3, 2, 2, 1], scale, zero_point),
|
/frameworks/ml/nn/common/ |
D | OperationsUtils.cpp | 236 const auto zero_point = outputShape.offset; in CalculateActivationRangeUint8() local 238 auto quantize = [scale, zero_point](float f) { in CalculateActivationRangeUint8() 239 return zero_point + static_cast<int32_t>(std::round(f / scale)); in CalculateActivationRangeUint8()
|