Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dquantization_util_test.cc70 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/
Dhard_swish_test.cc66 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()
Dl2norm_test.cc41 float kInputScale = ScaleFromMinMax<T>(kInputMin, kInputMax); in CreateL2NormTensor()
43 float kOutputScale = ScaleFromMinMax<T>(kOutputMin, kOutputMax); in CreateL2NormTensor()
Ddetection_postprocess_test.cc125 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/
Dtest_helpers.h225 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()