Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils_test.cc78 const float float_max = 127.0; in TEST_F() local
82 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
88 EXPECT_EQ(params.max[0], float_max); in TEST_F()
102 const float float_max = 6.0; in TEST_F() local
106 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
112 EXPECT_EQ(params.max[0], float_max); in TEST_F()
125 const float float_max = -1.0; in TEST_F() local
129 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
146 const float float_max = 1.0; in TEST_F() local
150 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
[all …]
Dquantize_model_test.cc60 float float_max = std::max(0.f, float_quant_params.max()->Get(0)); in VerifyAsymmetricQuantizationScale() local
65 float scale = (float_max - float_min) / 255; in VerifyAsymmetricQuantizationScale()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlower_tf.cc351 auto float_max = op.max(); in matchAndRewrite() local
353 auto float_diff = rewriter.create<SubOp>(op.getLoc(), float_max, float_min); in matchAndRewrite()