Searched refs:ScaleFromMinMax (Results 1 – 5 of 5) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/common/ |
D | quantization_util_test.cc | 70 inline float ScaleFromMinMax(const float min, const float max) { in ScaleFromMinMax() function 80 static_cast<int>(-min / ScaleFromMinMax<T>(min, max) + 0.5f); in ZeroPointFromMinMax() 92 result.params = {ScaleFromMinMax<int8_t>(min, max), in CreateQuantizedTensor() 111 result.params = {ScaleFromMinMax<uint8_t>(min, max), in CreateQuantizedTensor()
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | hard_swish_test.cc | 66 const float input_scale = ScaleFromMinMax<T>(input_min, input_max); in TestHardSwishQuantized() 68 const float output_scale = ScaleFromMinMax<T>(output_min, output_max); in TestHardSwishQuantized() 133 const float input_scale = ScaleFromMinMax<T>(input_min, input_max); in TestHardSwishQuantizedBias() 134 const float output_scale = ScaleFromMinMax<T>(output_min, output_max); in TestHardSwishQuantizedBias()
|
D | l2norm_test.cc | 41 float kInputScale = ScaleFromMinMax<T>(kInputMin, kInputMax); in CreateL2NormTensor() 43 float kOutputScale = ScaleFromMinMax<T>(kOutputMin, kOutputMax); in CreateL2NormTensor()
|
D | detection_postprocess_test.cc | 125 const float input_scale1 = ScaleFromMinMax<uint8_t>(input_min1, input_max1); in TestDetectionPostprocess() 128 const float input_scale2 = ScaleFromMinMax<uint8_t>(input_min2, input_max2); in TestDetectionPostprocess() 131 const float input_scale3 = ScaleFromMinMax<uint8_t>(input_min3, input_max3); in TestDetectionPostprocess()
|
/external/tensorflow/tensorflow/lite/micro/ |
D | test_helpers.h | 225 inline float ScaleFromMinMax(const float min, const float max) { in ScaleFromMinMax() function 235 static_cast<int>(-min / ScaleFromMinMax<T>(min, max) + 0.5f); in ZeroPointFromMinMax()
|