Home
last modified time | relevance | path

Searched refs:float_min (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils_test.cc77 const float float_min = -128.0; in TEST_F() local
82 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
89 EXPECT_EQ(params.min[0], float_min); in TEST_F()
101 const float float_min = 1.0; in TEST_F() local
106 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
124 const float float_min = -6.0; in TEST_F() local
129 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
136 EXPECT_EQ(params.min[0], float_min); in TEST_F()
145 const float float_min = -5.0; in TEST_F() local
150 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST_F()
[all …]
Dquantize_model_test.cc59 float float_min = std::min(0.f, float_quant_params.min()->Get(0)); in VerifyAsymmetricQuantizationScale() local
65 float scale = (float_max - float_min) / 255; in VerifyAsymmetricQuantizationScale()
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dclamp-to-minmax.ll534 %float_min = select i1 %float_min_cmp, float 255.0, float %x
535 %i32_min = fptosi float %float_min to i32
569 %float_min = select i1 %float_min_cmp, float 255.0, float %x
570 %i32_min = fptosi float %float_min to i32
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlower_tf.cc350 auto float_min = op.min(); in matchAndRewrite() local
353 auto float_diff = rewriter.create<SubOp>(op.getLoc(), float_max, float_min); in matchAndRewrite()
378 rewriter.create<DivOp>(op.getLoc(), float_min, quant_to_float); in matchAndRewrite()