Searched refs:zero_point (Results 1 – 3 of 3) sorted by relevance
/frameworks/ml/nn/tools/test_generator/ |
D | vts_generator.py | 86 real_shape, scale, zero_point = ty.get_parsed_shape() 88 zero_point = int(zero_point) 94 "zero_point": str(int(zero_point)),
|
D | test_generator.py | 188 scale, sep, zero_point = right.rpartition(',') 190 if zero_point == "": 192 return real_shape, zero_point, "0" 194 return real_shape, scale.replace("f", ""), zero_point 201 real_shape, scale, zero_point = self.get_parsed_shape()
|
/frameworks/ml/nn/common/ |
D | OperationsUtils.cpp | 136 const auto zero_point = outputShape.offset; in CalculateActivationRangeUint8() local 138 auto quantize = [scale, zero_point](float f) { in CalculateActivationRangeUint8() 139 return zero_point + static_cast<int32_t>(std::round(f / scale)); in CalculateActivationRangeUint8()
|