Home
last modified time | relevance | path

Searched refs:output_min (Results 1 – 25 of 40) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dquantized_add_op.cc49 float scalar_input_max, float output_min, float output_max, in ScalarAddition() argument
52 scalar_input, scalar_input_min, scalar_input_max, output_min, output_max); in ScalarAddition()
55 full_input[i], full_input_min, full_input_max, output_min, output_max); in ScalarAddition()
67 float output_min, float output_max, qint32* output) { in ScalarAddition() argument
69 scalar_input, scalar_input_min, scalar_input_max, output_min, output_max); in ScalarAddition()
76 FloatToQuantizedUnclamped<qint32>(input_0_float, output_min, output_max); in ScalarAddition()
78 FloatToQuantizedUnclamped<qint32>(input_1_float, output_min, output_max); in ScalarAddition()
124 float output_min, float output_max, qint32* output) { in ScalarAddition() argument
126 scalar_input, scalar_input_min, scalar_input_max, output_min, output_max); in ScalarAddition()
133 FloatToQuantizedUnclamped<qint32>(input_0_float, output_min, output_max); in ScalarAddition()
[all …]
Dquantized_batch_norm_op.cc38 Tensor* output, float* output_min, float* output_max) { in ReferenceBatchNorm() argument
49 *output_min = std::numeric_limits<float>::max(); in ReferenceBatchNorm()
78 *output_min = std::min(output_value, *output_min); in ReferenceBatchNorm()
82 FloatToQuantized<T2>(output_value, *output_min, *output_max); in ReferenceBatchNorm()
101 Tensor* output, float* output_min, float* output_max) { in FixedPointBatchNorm() argument
115 *output_min = -(1 << 20); in FixedPointBatchNorm()
139 FloatToQuantized<T2>(scale_value, *output_min, *output_max); in FixedPointBatchNorm()
141 FloatToQuantized<T2>(offset_value, *output_min, *output_max); in FixedPointBatchNorm()
145 FloatToQuantized<T2>(1.0f, *output_min, *output_max); in FixedPointBatchNorm()
151 input_max, *output_min, *output_max); in FixedPointBatchNorm()
[all …]
Dquantized_concat_op.cc35 float output_min, float output_max) in RequantizeCopier()
36 : output_min(output_min), in RequantizeCopier()
43 if (input_min == output_min && input_max == output_max) { in Copy()
54 FloatToQuantizedStruct<T> f2q(output_min, output_max); in Copy()
64 float output_min; member
82 float* output_min, float* output_max) { in CalculateInputAndOutputRange() argument
100 *output_min = -largest_value; in CalculateInputAndOutputRange()
103 *output_min = overall_min; in CalculateInputAndOutputRange()
194 float output_min = std::numeric_limits<float>::max(); in Compute() local
198 &input_mins_and_maxes, &output_min, in Compute()
[all …]
Dquantized_activation_ops.cc51 Tensor* output_min = nullptr; in Compute() local
52 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
53 output_min->flat<float>()(0) = min_input; in Compute()
89 Tensor* output_min = nullptr; in Compute() local
90 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
91 output_min->flat<float>()(0) = min_input; in Compute()
Dquantized_pooling_ops.cc94 Tensor* output_min = nullptr; in Compute() local
95 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
96 output_min->flat<float>()(0) = min_input; in Compute()
118 Tensor* output_min = nullptr; in Compute() local
119 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
120 output_min->flat<float>()(0) = min_input; in Compute()
Dquantization_utils_test.cc35 float input_max, float output_min, float output_max, in TestRequantizeMany() argument
44 output_min, output_max)); in TestRequantizeMany()
55 input_max, output_min, output_max, in TestRequantizeMany()
59 *eigen_device, i_tensor, input_min, input_max, output_min, output_max, in TestRequantizeMany()
71 << ", input_max=" << input_max << ", output_min=" << output_min in TestRequantizeMany()
77 float output_min, float output_max, in TestRequantizeMany8To32Bit() argument
86 output_min, output_max)); in TestRequantizeMany8To32Bit()
96 input_max, output_min, output_max, in TestRequantizeMany8To32Bit()
107 << ", input_max=" << input_max << ", output_min=" << output_min in TestRequantizeMany8To32Bit()
232 const float output_min = ranges[range_index][2]; in TestRequantizeManyInNewRangeEigenVsNonEigen() local
[all …]
Dquantized_activation_ops_test.cc62 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
65 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TEST_F()
93 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
96 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TEST_F()
Dquantized_reshape_op.cc36 Tensor* output_min = nullptr; in Compute() local
37 OP_REQUIRES_OK(ctx, ctx->allocate_output(1, TensorShape({}), &output_min)); in Compute()
38 output_min->flat<float>()(0) = input_min_float; in Compute()
Dquantized_pooling_ops_test.cc76 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
79 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TEST_F()
121 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
124 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TEST_F()
Drequantization_range_op.cc51 Tensor* output_min = nullptr; in Compute() local
52 OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &output_min)); in Compute()
68 output_min->flat<float>().setConstant(used_min_float); in Compute()
Dquantized_bias_add_op_test.cc83 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
86 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
165 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
168 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
Dquantize_op_test.cc292 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
294 EXPECT_NEAR(0.0f, output_min, 1e-5f); in TEST_F()
314 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
316 EXPECT_NEAR(0.0f, output_min, 1e-5f); in TEST_F()
336 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
338 EXPECT_NEAR(0.0f, output_min, 1e-5f); in TEST_F()
358 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
360 EXPECT_NEAR(-0.3f, output_min, 1e-5f); in TEST_F()
Drequantize.cc49 Tensor* output_min = nullptr; in Compute() local
50 OP_REQUIRES_OK(ctx, ctx->allocate_output(1, TensorShape({}), &output_min)); in Compute()
92 output_min->flat<float>().setConstant(requested_output_min_float); in Compute()
Dquantized_concat_op_test.cc111 const float output_min = GetOutput(1)->flat<float>()(0); in TestSmall8Bit() local
114 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TestSmall8Bit()
177 const float output_min = GetOutput(1)->flat<float>()(0); in TestSmall32Bit() local
180 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TestSmall32Bit()
239 const float output_min = GetOutput(1)->flat<float>()(0); in TestSecondDim8Bit() local
242 QuantizedTensorToFloat<quint8>(output_quantized, output_min, output_max); in TestSecondDim8Bit()
Dquantization_utils.cc23 float* output_min, float* output_max) { in GetOutputMinAndMaxForQuantizedAdd() argument
39 *output_min = -(*output_max); in GetOutputMinAndMaxForQuantizedAdd()
Dquantize_down_and_shrink_range.cc47 Tensor* output_min = nullptr; in Compute() local
48 OP_REQUIRES_OK(ctx, ctx->allocate_output(1, TensorShape({}), &output_min)); in Compute()
96 output_min->flat<float>().setConstant(actual_min_float); in Compute()
Dquantized_bias_add_op.cc84 Tensor* output_min = nullptr; in Compute() local
85 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
86 output_min->flat<float>()(0) = total_min; in Compute()
Dmeta_support.cc257 float input_min, float input_max, float output_min, in Requantize() argument
270 params.kernel.output_range_min = output_min; in Requantize()
274 CalculateOneOverRangeScale<uint8_t>(output_min, output_max); in Requantize()
349 float bias_max, float output_min, float output_max, in QuantizedBiasAdd() argument
371 params.kernel.output_range_min = output_min; in QuantizedBiasAdd()
373 CalculateOneOverRangeScale<int32_t>(output_min, output_max); in QuantizedBiasAdd()
Dmeta_support.h80 float input_min, float input_max, float output_min,
101 float bias_max, float output_min, float output_max,
Dquantized_batch_norm_op_test.cc127 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
130 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
235 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
238 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
Dquantized_conv_ops_test.cc127 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
130 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
318 const float output_min = GetOutput(1)->flat<float>()(0); in TEST_F() local
321 QuantizedTensorToFloat<qint32>(output_quantized, output_min, output_max); in TEST_F()
Dquantization_utils.h799 float* output_min, float* output_max);
808 Tensor* output, float* output_min, in QuantizedAddUsingEigen() argument
815 smaller_input_max, output_min, output_max); in QuantizedAddUsingEigen()
821 FloatToQuantized<T3>(0.0f, *output_min, *output_max); in QuantizedAddUsingEigen()
829 FloatToQuantizedStruct<T3> f2q(*output_min, *output_max); in QuantizedAddUsingEigen()
855 Tensor* output, float* output_min, float* output_max) { in QuantizedAdd() argument
861 smaller_input_max, output_min, output_max); in QuantizedAdd()
867 FloatToQuantized<T3>(0.0f, *output_min, *output_max); in QuantizedAdd()
872 float total_min = *output_min; in QuantizedAdd()
Dquantized_instance_norm.cc296 Tensor* output_min = nullptr; in Compute() local
297 OP_REQUIRES_OK(context, context->allocate_output(1, {}, &output_min)); in Compute()
344 output_min->scalar<float>()() = minimum; in Compute()
391 output_min->flat<float>()(0) = normed_min(); in Compute()
/external/tensorflow/tensorflow/python/ops/
Dquantized_conv_ops_test.py78 output_min = value[1]
80 float_output = self._QuantizedOutputToFloat(quantized_output, output_min,
/external/tensorflow/tensorflow/tools/graph_transforms/
Dquantize_nodes_test.cc540 quantize_op.output_min, quantize_op.output_max); in TestRemoveRedundantQuantization()
603 requantization_range_op.output_min, requantization_range_op.output_max, in TestRemoveRedundantQuantizationWithBiasAdd()
608 requantize_op.output_min, requantize_op.output_max); in TestRemoveRedundantQuantizationWithBiasAdd()
639 quantize_op.output_min, quantize_op.output_max); in TestRemoveRedundantQuantizationWithBiasAdd()
729 requantization_range_op.output_min, requantization_range_op.output_max, in TestRemoveRedundantQuantizationWithMultipleOutputs()
734 requantize_op.output_min, requantize_op.output_max); in TestRemoveRedundantQuantizationWithMultipleOutputs()
765 quantize_op.output_min, quantize_op.output_max); in TestRemoveRedundantQuantizationWithMultipleOutputs()
966 requantization_range_op.output_min, requantization_range_op.output_max, in TestMergeAdjacentRequantizes()
971 requantize_op.output_min, requantize_op.output_max, in TestMergeAdjacentRequantizes()
1002 quantize_op.output_min, quantize_op.output_max, fake_requantize_min_op, in TestMergeAdjacentRequantizes()
[all …]

12