Home
last modified time | relevance | path

Searched refs:input_scale (Results 1 – 25 of 95) sorted by relevance

1234

/external/XNNPACK/test/
Dqu8-gavgpool-minmax.cc48 for (float input_scale = 0.01f; input_scale < 100.0f; input_scale *= 3.14159265f) { in TEST() local
52 .input_scale(input_scale) in TEST()
97 .input_scale(1.0f) in TEST()
110 .input_scale(1.0f) in TEST()
163 for (float input_scale = 0.01f; input_scale < 100.0f; input_scale *= 3.14159265f) { in TEST() local
167 .input_scale(input_scale) in TEST()
220 .input_scale(1.0f) in TEST()
235 .input_scale(1.0f) in TEST()
267 for (float input_scale = 0.01f; input_scale < 100.0f; input_scale *= 3.14159265f) { in TEST() local
271 .input_scale(input_scale) in TEST()
[all …]
Dsigmoid-nc.cc48 for (float input_scale = 1.0e-2f; input_scale < 1.0e+2f; input_scale *= 10.0f) { in TEST() local
52 .input_scale(input_scale) in TEST()
128 for (float input_scale = 1.0e-2f; input_scale < 1.0e+2f; input_scale *= 10.0f) { in TEST() local
132 .input_scale(input_scale) in TEST()
192 for (float input_scale = 1.0e-2f; input_scale < 1.0e+2f; input_scale *= 10.0f) { in TEST() local
198 .input_scale(input_scale) in TEST()
Dsoftmax-operator-tester.h78 inline SoftMaxOperatorTester& input_scale(float input_scale) { in input_scale() argument
79 assert(input_scale > 0.0f); in input_scale()
80 assert(std::isnormal(input_scale)); in input_scale()
81 this->input_scale_ = input_scale; in input_scale()
85 inline float input_scale() const { in input_scale() function
136 input_scale()); in TestQU8()
141 input_scale()) / in TestQU8()
154 input_scale(), in TestQU8()
Dsigmoid-operator-tester.h78 inline SigmoidOperatorTester& input_scale(float input_scale) { in input_scale() function
79 assert(input_scale > 0.0f); in input_scale()
80 assert(std::isnormal(input_scale)); in input_scale()
81 this->input_scale_ = input_scale; in input_scale()
85 inline float input_scale() const { in input_scale() function
148 const float x = input_scale() * in TestQU8()
166 input_zero_point(), input_scale(), in TestQU8()
Dleaky-relu-operator-tester.h89 inline LeakyReLUOperatorTester& input_scale(float input_scale) { in input_scale() function
90 assert(input_scale > 0.0f); in input_scale()
91 assert(std::isnormal(input_scale)); in input_scale()
92 this->input_scale_ = input_scale; in input_scale()
96 inline float input_scale() const { in input_scale() function
227 …const float x = input_scale() * (int32_t(input[i * input_stride() + c]) - int32_t(input_zero_point… in TestQU8()
243 input_zero_point(), input_scale(), in TestQU8()
/external/tensorflow/tensorflow/lite/micro/kernels/
Dpooling_test.cc91 const int* input_dims_data, const T* input_data, const float input_scale, in TestAveragePoolQuantized() argument
107 CreateQuantizedTensor(input_data, input_dims, input_scale, in TestAveragePoolQuantized()
148 const float input_scale, const int input_zero_point, in TestMaxPoolQuantized() argument
163 CreateQuantizedTensor(input_data, input_dims, input_scale, in TestMaxPoolQuantized()
211 const float input_scale = 0.25; in TF_LITE_MICRO_TEST() local
216 input_shape, input_values, input_scale, input_zero_point, filter_height, in TF_LITE_MICRO_TEST()
233 const float input_scale = .25; in TF_LITE_MICRO_TEST() local
238 input_shape, input_values, input_scale, input_zero_point, filter_height, in TF_LITE_MICRO_TEST()
255 const float input_scale = .25; in TF_LITE_MICRO_TEST() local
260 input_shape, input_values, input_scale, input_zero_point, filter_height, in TF_LITE_MICRO_TEST()
[all …]
Dsoftmax_test.cc299 inputT* input_quantized, float input_scale, in TestSoftmaxQuantized() argument
313 input_scale, input_zero_point), in TestSoftmaxQuantized()
340 const float input_scale = 0.1f; in TF_LITE_MICRO_TEST() local
348 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST()
355 const float input_scale = 0.1f; in TF_LITE_MICRO_TEST() local
363 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST()
370 const float input_scale = 0.1f; in TF_LITE_MICRO_TEST() local
378 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST()
392 const float input_scale = 0.1f; in TF_LITE_MICRO_TEST() local
400 input_quantized, input_scale, input_zero_point, tflite::testing::shape_2d, in TF_LITE_MICRO_TEST()
[all …]
Darg_min_max_test.cc75 float input_scale, int input_zero_point, in TestArgMinMaxQuantized() argument
90 input_scale, input_zero_point), in TestArgMinMaxQuantized()
143 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
148 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
162 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
167 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
181 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
186 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
200 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
205 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dreduce_test.cc150 float input_scale, int input_zero_point, const int* axis_dims_data, in TestReduceOpQuantized() argument
167 input_scale, input_zero_point), in TestReduceOpQuantized()
186 T* input_data_quant, float input_scale, in TestMeanOpQuantized() argument
205 input_scale, input_zero_point), in TestMeanOpQuantized()
245 float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
256 input_data_quant, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
268 float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
279 input_data_quant, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
303 float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
314 input_data_quant, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dquantize_test.cc86 InputType* input_quantized, const float input_scale, in TestRequantize() argument
109 input_scale, input_zero_point), in TestRequantize()
207 const float input_scale = 2.f; in TF_LITE_MICRO_TEST() local
214 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
224 const float input_scale = 1.f; in TF_LITE_MICRO_TEST() local
231 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
241 const float input_scale = 2.f; in TF_LITE_MICRO_TEST() local
248 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
258 const float input_scale = 1.f; in TF_LITE_MICRO_TEST() local
265 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
[all …]
Ddepthwise_conv_test.cc114 uint8_t* input_quantized, float input_scale, int input_zero_point, in TestDepthwiseConvQuantizedPerLayer() argument
132 input_dims, input_scale, in TestDepthwiseConvQuantizedPerLayer()
138 bias_data, bias_quantized, bias_dims, input_scale, filter_scale), in TestDepthwiseConvQuantizedPerLayer()
151 float bias_scales[] = {1, filter_scale * input_scale}; in TestDepthwiseConvQuantizedPerLayer()
165 int8_t* input_quantized, float input_scale, int input_zero_point, in TestDepthwiseConvQuantizedPerChannel() argument
186 input_data, input_quantized, input_dims, input_scale, input_zero_point); in TestDepthwiseConvQuantizedPerChannel()
192 bias_data, bias_data_quantized, bias_dims, input_scale, &filter_scales[1], in TestDepthwiseConvQuantizedPerChannel()
199 float input_scales[] = {1, input_scale}; in TestDepthwiseConvQuantizedPerChannel()
285 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
304 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dactivations_test.cc94 uint8_t* input_data_quantized, const float input_scale, in TestReluUint8() argument
108 input_scale, input_zero_point), in TestReluUint8()
135 uint8_t* input_data_quantized, const float input_scale, in TestRelu6Uint8() argument
149 input_scale, input_zero_point), in TestRelu6Uint8()
176 int8_t* input_data_quantized, const float input_scale, in TestReluInt8() argument
189 input_scale, input_zero_point), in TestReluInt8()
216 int8_t* input_data_quantized, const float input_scale, in TestRelu6Int8() argument
229 input_scale, input_zero_point), in TestRelu6Int8()
300 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
306 input_scale, input_zero_point, golden, in TF_LITE_MICRO_TEST()
[all …]
Dconv_test.cc105 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
118 input_quantized, input_scale, tflite::testing::kFilterShape, in TF_LITE_MICRO_TEST()
191 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
219 input_shape, input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
231 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
247 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
261 const float input_scale = 0.5f; in TF_LITE_MICRO_TEST() local
292 input_shape, input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
308 const float input_scale = 0.023529f; in TF_LITE_MICRO_TEST() local
324 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dpad_test.cc146 T* input_quantized, float input_scale, in TestPadQuantized() argument
161 input_scale, input_zero_point), in TestPadQuantized()
179 T* input_quantized, float input_scale, in TestPadV2Quantized() argument
200 input_scale, input_zero_point), in TestPadV2Quantized()
278 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
292 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
300 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
317 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
326 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
340 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dfully_connected_test.cc294 const float input_scale, const int input_zero_point, in TestFullyConnectedQuantized() argument
313 input_scale, input_zero_point), in TestFullyConnectedQuantized()
317 input_scale, weights_scale), in TestFullyConnectedQuantized()
354 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
370 tflite::testing::simple_input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
383 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
399 tflite::testing::simple_input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
411 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
430 input_scale, input_zero_point, tflite::testing::simple_weights_dims, in TF_LITE_MICRO_TEST()
441 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
[all …]
Dtanh_test.cc104 T* input_quantized, float input_scale, in TestTanhQuantized() argument
123 input_scale, input_zero_point), in TestTanhQuantized()
173 const float input_scale = 16 / 256.f; in TF_LITE_MICRO_TEST() local
187 input_scale, input_zero_point, // Input quantized info. in TF_LITE_MICRO_TEST()
201 const float input_scale = 16 / 256.f; in TF_LITE_MICRO_TEST() local
215 input_scale, input_zero_point, // Input quantized info. in TF_LITE_MICRO_TEST()
Dlogistic_test.cc92 T* input_quantized, const float input_scale, in TestLogisticQuantized() argument
106 input_scale, input_zero_point), in TestLogisticQuantized()
131 const float input_scale = 0.1; in TF_LITE_MICRO_TEST() local
139 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
154 const float input_scale = 1.0; in TF_LITE_MICRO_TEST() local
162 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dlogsoftmax_quantized_test.cc39 int32 input_offset, const double input_scale, in RunLogSoftmaxFloatReference() argument
50 dq_params.scale = input_scale; in RunLogSoftmaxFloatReference()
72 int32 input_offset, const double input_scale, in RunLogSoftmaxFloatReference() argument
83 dq_params.scale = input_scale; in RunLogSoftmaxFloatReference()
148 const double input_scale, int stride, float beta) { in RunOneLogSoftmaxTest() argument
155 input_scale, stride, beta, in RunOneLogSoftmaxTest()
164 beta, input_scale, kScaledDiffIntegerBits, &input_beta_multiplier, in RunOneLogSoftmaxTest()
184 optimized_ops::PopulateSoftmaxLookupTable(&params, input_scale, beta); in RunOneLogSoftmaxTest()
185 optimized_ops::LogSoftmax(params, input_scale, shape_common, input_data, in RunOneLogSoftmaxTest()
206 const double input_scale, int stride, float beta) { in RunOneLogSoftmaxTest() argument
[all …]
Dsoftmax_quantized_test.cc37 int32 input_offset, const double input_scale, in RunSoftmaxFloatReference() argument
48 dq_params.scale = input_scale; in RunSoftmaxFloatReference()
108 const double input_scale, int stride, float beta) { in RunOneSoftmaxTest() argument
114 RunSoftmaxFloatReference(input_data, shape_common, input_offset, input_scale, in RunOneSoftmaxTest()
120 tflite::PreprocessSoftmaxScaling(beta, input_scale, kScaledDiffIntegerBits, in RunOneSoftmaxTest()
137 optimized_ops::PopulateSoftmaxLookupTable(&params, input_scale, beta); in RunOneSoftmaxTest()
158 optimized_ops::PopulateSoftmaxUInt8LookupTable(&params, input_scale, beta); in RunOneSoftmaxTest()
182 const double input_scale = std::pow(10.0, UniformRandomFloat(-2.0, 1.0)); in TryOneUniformSoftmax() local
192 RunOneSoftmaxTest(input_data.data(), shape_common, input_offset, input_scale, in TryOneUniformSoftmax()
215 const double input_scale = std::pow(10.0, UniformRandomFloat(-2.0, 1.0)); in TryOneSkyscraperSoftmax() local
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Ddepthwise_conv_slicing_test.cc120 int8_t* input_quantized, float input_scale, int input_zero_point, in TestDepthwiseConvQuantizedPerChannel() argument
142 input_scale, input_zero_point, "input_tensor"); in TestDepthwiseConvQuantizedPerChannel()
148 bias_data, bias_data_quantized, bias_dims, input_scale, &filter_scales[1], in TestDepthwiseConvQuantizedPerChannel()
155 float input_scales[] = {1, input_scale}; in TestDepthwiseConvQuantizedPerChannel()
214 const float input_scale = 1.0; in TF_LITE_MICRO_TEST() local
227 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
257 const float input_scale = 1.0; in TF_LITE_MICRO_TEST() local
270 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
304 const float input_scale = 1.0; in TF_LITE_MICRO_TEST() local
317 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
Dconv_slicing_test.cc193 int8_t* input_quantized, float input_scale, int input_zero_point, in TestConvQuantizedPerChannel() argument
213 input_scale, input_zero_point, "input_tensor"); in TestConvQuantizedPerChannel()
233 bias_data, bias_data_quantized, bias_dims, input_scale, &filter_scales[1], in TestConvQuantizedPerChannel()
240 float input_scales[] = {1, input_scale}; in TestConvQuantizedPerChannel()
282 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
298 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
309 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
327 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
339 const float input_scale = 1.0f; in TF_LITE_MICRO_TEST() local
355 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/
Ddepthwise_conv_hybrid_3x3_filter.h129 static inline void Run(const float* input_scale,
1028 [input_scale] "r"(input_scale),
1064 static inline void Run(const float* input_scale, const int8* input_ptr,
2034 [input_scale] "r"(input_scale),
2072 static inline void Run(const float* input_scale, const int8* input_ptr,
2171 [params_ptr] "r"(params_ptr), [input_scale] "r"(input_scale)
2188 static inline void Run(const float* input_scale, const int8* input_ptr,
2340 [input_scale] "r"(input_scale),
2358 static inline void Run(const float* input_scale, const int8* input_ptr,
2545 [input_scale] "r"(input_scale), [params_ptr] "r"(params_ptr)
[all …]
/external/XNNPACK/src/operators/
Dglobal-average-pooling-nwc.c205 float input_scale, in xnn_create_global_average_pooling_nwc_qu8() argument
213 if (input_scale <= 0.0f || !isnormal(input_scale)) { in xnn_create_global_average_pooling_nwc_qu8()
216 xnn_operator_type_to_string(xnn_operator_type_global_average_pooling_nwc_qu8), input_scale); in xnn_create_global_average_pooling_nwc_qu8()
234 const float input_output_scale = input_scale / output_scale; in xnn_create_global_average_pooling_nwc_qu8()
257 global_average_pooling_op->input_scale = input_scale; in xnn_create_global_average_pooling_nwc_qu8()
268 float input_scale, in xnn_create_global_average_pooling_nwc_qs8() argument
276 if (input_scale <= 0.0f || !isnormal(input_scale)) { in xnn_create_global_average_pooling_nwc_qs8()
279 xnn_operator_type_to_string(xnn_operator_type_global_average_pooling_nwc_qs8), input_scale); in xnn_create_global_average_pooling_nwc_qs8()
297 const float input_output_scale = input_scale / output_scale; in xnn_create_global_average_pooling_nwc_qs8()
320 global_average_pooling_op->input_scale = input_scale; in xnn_create_global_average_pooling_nwc_qs8()
[all …]
/external/tensorflow/tensorflow/lite/micro/
Dtesting_helpers_test.cc22 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
33 pre_quantized, quantized, dims, input_scale, weight_scale); in TF_LITE_MICRO_TEST()
37 TF_LITE_MICRO_EXPECT_EQ(result.params.scale, input_scale * weight_scale); in TF_LITE_MICRO_TEST()
44 float input_scale = 0.5; in TF_LITE_MICRO_TEST() local
59 pre_quantized, quantized, dims, input_scale, weight_scales, scales, in TF_LITE_MICRO_TEST()
65 TF_LITE_MICRO_EXPECT_EQ(scales[i + 1], input_scale * weight_scales[i]); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/
Dhello_world_test.cc75 float input_scale = input->params.scale; in TF_LITE_MICRO_TEST() local
79 int8_t x_quantized = x / input_scale + input_zero_point; in TF_LITE_MICRO_TEST()
111 input->data.int8[0] = x / input_scale + input_zero_point; in TF_LITE_MICRO_TEST()
118 input->data.int8[0] = x / input_scale + input_zero_point; in TF_LITE_MICRO_TEST()
125 input->data.int8[0] = x / input_scale + input_zero_point; in TF_LITE_MICRO_TEST()

1234