/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | softmax_test.cc | 299 inputT* input_quantized, float input_scale, in TestSoftmaxQuantized() argument 312 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestSoftmaxQuantized() 343 uint8_t input_quantized[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST() local 348 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST() 358 int8_t input_quantized[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST() local 363 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST() 373 int16_t input_quantized[tflite::testing::flat_size_1d]; in TF_LITE_MICRO_TEST() local 378 input_quantized, input_scale, input_zero_point, tflite::testing::shape_1d, in TF_LITE_MICRO_TEST() 395 uint8_t input_quantized[tflite::testing::flat_size_2d]; in TF_LITE_MICRO_TEST() local 400 input_quantized, input_scale, input_zero_point, tflite::testing::shape_2d, in TF_LITE_MICRO_TEST() [all …]
|
D | arg_min_max_test.cc | 74 const float* input_values, T* input_quantized, in TestArgMinMaxQuantized() argument 89 CreateQuantizedTensor(input_values, input_quantized, input_dims, in TestArgMinMaxQuantized() 145 uint8_t input_quantized[input_size]; in TF_LITE_MICRO_TEST() local 148 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 164 uint8_t input_quantized[input_size]; in TF_LITE_MICRO_TEST() local 167 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 183 int8_t input_quantized[input_size]; in TF_LITE_MICRO_TEST() local 186 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 202 int8_t input_quantized[input_size]; in TF_LITE_MICRO_TEST() local 205 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | quantize_test.cc | 86 InputType* input_quantized, const float input_scale, in TestRequantize() argument 108 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestRequantize() 213 int16_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 214 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 230 int16_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 231 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 247 int8_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 248 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 264 int8_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 265 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST() [all …]
|
D | pad_test.cc | 146 T* input_quantized, float input_scale, in TestPadQuantized() argument 160 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestPadQuantized() 179 T* input_quantized, float input_scale, in TestPadV2Quantized() argument 199 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestPadV2Quantized() 288 uint8_t input_quantized[4]; in TF_LITE_MICRO_TEST() local 292 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 313 uint8_t input_quantized[4]; in TF_LITE_MICRO_TEST() local 317 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 336 int8_t input_quantized[4]; in TF_LITE_MICRO_TEST() local 340 input_dims, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | fully_connected_test.cc | 293 const int* input_dims_data, const float* input_data, T* input_quantized, in TestFullyConnectedQuantized() argument 312 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestFullyConnectedQuantized() 361 uint8_t input_quantized[tflite::testing::simple_input_size]; in TF_LITE_MICRO_TEST() local 370 tflite::testing::simple_input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 390 int8_t input_quantized[tflite::testing::simple_input_size]; in TF_LITE_MICRO_TEST() local 399 tflite::testing::simple_input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 421 int8_t input_quantized[tflite::testing::simple_input_size]; in TF_LITE_MICRO_TEST() local 429 input_dims_4d, tflite::testing::simple_input_data, input_quantized, in TF_LITE_MICRO_TEST() 449 int8_t input_quantized[tflite::testing::relu_input_size]; in TF_LITE_MICRO_TEST() local 458 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | depthwise_conv_test.cc | 114 uint8_t* input_quantized, float input_scale, int input_zero_point, in TestDepthwiseConvQuantizedPerLayer() argument 131 tflite::testing::CreateQuantizedTensor(input_data, input_quantized, 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() 292 uint8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 304 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 339 uint8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 351 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 403 uint8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 415 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | dequantize_test.cc | 110 uint8_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 112 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST() 123 int8_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 125 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST() 136 int16_t input_quantized[length]; in TF_LITE_MICRO_TEST() local 138 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST()
|
D | conv_test.cc | 109 uint8_t input_quantized[tflite::testing::kInputElements]; in TF_LITE_MICRO_TEST() local 118 input_quantized, input_scale, tflite::testing::kFilterShape, in TF_LITE_MICRO_TEST() 207 uint8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 219 input_shape, input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 236 int8_t input_quantized[tflite::testing::kInputElements]; in TF_LITE_MICRO_TEST() local 247 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 278 int8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 292 input_shape, input_data, input_quantized, input_scale, in TF_LITE_MICRO_TEST() 313 int8_t input_quantized[tflite::testing::kInputElements]; in TF_LITE_MICRO_TEST() local 324 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | logistic_test.cc | 92 T* input_quantized, const float input_scale, in TestLogisticQuantized() argument 105 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestLogisticQuantized() 133 int8_t input_quantized[tflite::testing::flat_size_basic]; in TF_LITE_MICRO_TEST() local 139 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 156 int8_t input_quantized[tflite::testing::flat_size_wide_range]; in TF_LITE_MICRO_TEST() local 162 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST()
|
D | prelu_test.cc | 73 T* input_quantized, const float input_scale, in TestPreluQuantized() argument 88 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestPreluQuantized() 152 uint8_t input_quantized[dims_count]; in TF_LITE_MICRO_TEST() local 160 input_shape, input_values, input_quantized, scale, zero_point, in TF_LITE_MICRO_TEST() 183 int8_t input_quantized[dims_count]; in TF_LITE_MICRO_TEST() local 190 input_shape, input_values, input_quantized, scale, zero_point, in TF_LITE_MICRO_TEST()
|
D | tanh_test.cc | 104 T* input_quantized, float input_scale, in TestTanhQuantized() argument 122 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestTanhQuantized() 181 uint8_t input_quantized[tanh_vec_size]; in TF_LITE_MICRO_TEST() local 186 tanh_input_vec_fp, input_quantized, // Input data. in TF_LITE_MICRO_TEST() 209 int8_t input_quantized[tanh_vec_size]; in TF_LITE_MICRO_TEST() local 214 tanh_input_vec_fp, input_quantized, // Input data. in TF_LITE_MICRO_TEST()
|
D | activations_test.cc | 294 uint8_t input_quantized[elements_count]; in TF_LITE_MICRO_TEST() local 305 tflite::testing::TestReluUint8(input_shape, input_data, input_quantized, in TF_LITE_MICRO_TEST() 316 uint8_t input_quantized[elements_count]; in TF_LITE_MICRO_TEST() local 327 tflite::testing::TestRelu6Uint8(input_shape, input_data, input_quantized, in TF_LITE_MICRO_TEST() 338 int8_t input_quantized[elements_count]; in TF_LITE_MICRO_TEST() local 349 tflite::testing::TestReluInt8(input_shape, input_data, input_quantized, in TF_LITE_MICRO_TEST() 360 int8_t input_quantized[elements_count]; in TF_LITE_MICRO_TEST() local 371 tflite::testing::TestRelu6Int8(input_shape, input_data, input_quantized, in TF_LITE_MICRO_TEST()
|
D | batch_to_space_nd_test.cc | 92 const int* input_dims_data, const float* input_data, T* input_quantized, in TestBatchToSpaceNdQuantized() argument 107 tflite::testing::CreateQuantizedTensor(input_data, input_quantized, in TestBatchToSpaceNdQuantized() 142 int8_t input_quantized[tflite::testing::kBasicInputOutputSize]; in TF_LITE_MICRO_TEST() local 148 input_quantized, 1.0f, 0, tflite::testing::basic_block_shape_dims, in TF_LITE_MICRO_TEST()
|
D | space_to_batch_nd_test.cc | 92 const int* input_dims_data, const float* input_data, T* input_quantized, in TestSpaceToBatchNdQuantized() argument 107 tflite::testing::CreateQuantizedTensor(input_data, input_quantized, in TestSpaceToBatchNdQuantized() 142 int8_t input_quantized[tflite::testing::kBasicInputOutputSize]; in TF_LITE_MICRO_TEST() local 148 input_quantized, 1.0f, 0, tflite::testing::basic_block_shape_dims, in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/ |
D | depthwise_conv_slicing_test.cc | 120 int8_t* input_quantized, float input_scale, int input_zero_point, in TestDepthwiseConvQuantizedPerChannel() argument 141 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestDepthwiseConvQuantizedPerChannel() 219 int8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 227 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 262 int8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 270 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 309 int8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 317 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 359 int8_t input_quantized[input_elements]; in TF_LITE_MICRO_TEST() local 367 input_shape, input_values, input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
D | conv_slicing_test.cc | 193 int8_t* input_quantized, float input_scale, int input_zero_point, in TestConvQuantizedPerChannel() argument 212 CreateQuantizedTensor(input_data, input_quantized, input_dims, in TestConvQuantizedPerChannel() 287 int8_t input_quantized[tflite::testing::kInput1Elements]; in TF_LITE_MICRO_TEST() local 298 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 315 static int8_t input_quantized[tflite::testing::kInput1Elements]; in TF_LITE_MICRO_TEST() local 327 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 344 int8_t input_quantized[tflite::testing::kInput2Elements]; in TF_LITE_MICRO_TEST() local 355 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() 372 static int8_t input_quantized[tflite::testing::kInput2Elements]; in TF_LITE_MICRO_TEST() local 384 input_quantized, input_scale, input_zero_point, in TF_LITE_MICRO_TEST() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_activation_ops_test.cc | 51 Tensor input_quantized = in TEST_F() local 56 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 57 input_quantized.flat<quint8>()); in TEST_F() 82 Tensor input_quantized = in TEST_F() local 87 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 88 input_quantized.flat<quint8>()); in TEST_F()
|
D | quantized_pooling_ops_test.cc | 61 Tensor input_quantized = in TEST_F() local 70 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 71 input_quantized.flat<quint8>()); in TEST_F() 106 Tensor input_quantized = in TEST_F() local 115 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 116 input_quantized.flat<quint8>()); in TEST_F()
|
D | quantized_bias_add_op_test.cc | 58 Tensor input_quantized = in TEST_F() local 73 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 74 input_quantized.flat<quint8>()); in TEST_F() 118 Tensor input_quantized = in TEST_F() local 155 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 156 input_quantized.flat<quint8>()); in TEST_F()
|
D | quantized_batch_norm_op_test.cc | 70 Tensor input_quantized = in TEST_F() local 97 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 98 input_quantized.flat<quint8>()); in TEST_F() 167 Tensor input_quantized = in TEST_F() local 194 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 195 input_quantized.flat<quint8>()); in TEST_F()
|
/external/tensorflow/tensorflow/core/kernels/mkl/ |
D | mkl_quantized_pooling_ops_test.cc | 91 Tensor input_quantized = in TEST_F() local 108 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 109 input_quantized.flat<quint8>()); in TEST_F() 160 Tensor input_quantized = in TEST_F() local 176 AddInputFromArray<quint8>(input_quantized.shape(), in TEST_F() 177 input_quantized.flat<quint8>()); in TEST_F()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | basic_rnn.cc | 117 TfLiteTensor* input_quantized; in Prepare() local 119 &input_quantized)); in Prepare() 120 input_quantized->type = input_weights->type; in Prepare() 121 input_quantized->allocation_type = kTfLiteArenaRw; in Prepare() 122 if (!TfLiteIntArrayEqual(input_quantized->dims, input->dims)) { in Prepare() 124 TF_LITE_ENSURE_OK(context, context->ResizeTensor(context, input_quantized, in Prepare() 309 TfLiteTensor* input_quantized; in Eval() local 311 GetTemporarySafe(context, node, 0, &input_quantized)); in Eval() 327 input_quantized, hidden_state_quantized, in Eval()
|
D | svdf.cc | 172 TfLiteTensor* input_quantized; in Prepare() local 174 &input_quantized)); in Prepare() 175 input_quantized->type = weights_feature->type; in Prepare() 176 input_quantized->allocation_type = kTfLiteArenaRw; in Prepare() 177 if (!TfLiteIntArrayEqual(input_quantized->dims, input->dims)) { in Prepare() 179 TF_LITE_ENSURE_OK(context, context->ResizeTensor(context, input_quantized, in Prepare() 321 TfLiteTensor* input_quantized; in Eval() local 323 &input_quantized)); in Eval() 369 GetTensorData<int8_t>(input_quantized), GetTensorData<float>(state), in Eval()
|
D | unidirectional_sequence_rnn.cc | 124 TfLiteTensor* input_quantized; in Prepare() local 126 &input_quantized)); in Prepare() 127 input_quantized->type = input_weights->type; in Prepare() 128 input_quantized->allocation_type = kTfLiteArenaRw; in Prepare() 129 if (!TfLiteIntArrayEqual(input_quantized->dims, input->dims)) { in Prepare() 131 TF_LITE_ENSURE_OK(context, context->ResizeTensor(context, input_quantized, in Prepare() 385 TfLiteTensor* input_quantized; in Eval() local 387 GetTemporarySafe(context, node, 0, &input_quantized)); in Eval() 403 input_quantized, hidden_state_quantized, in Eval()
|
D | fully_connected.cc | 272 TfLiteTensor* input_quantized; in PrepareImpl() local 274 &input_quantized)); in PrepareImpl() 275 input_quantized->type = filter->type; in PrepareImpl() 276 input_quantized->allocation_type = kTfLiteArenaRw; in PrepareImpl() 279 TF_LITE_ENSURE_OK(context, context->ResizeTensor(context, input_quantized, in PrepareImpl() 438 TfLiteTensor* input_quantized, in EvalHybridImpl() argument 491 GetTensorData<int8_t>(input_quantized) + thread_start * input_depth; in EvalHybridImpl() 531 TfLiteTensor* input_quantized, in HybridFullyConnectedTask() 544 input_quantized(input_quantized), in HybridFullyConnectedTask() 553 thread_start, thread_end, input_quantized, scaling_factors, in Run() [all …]
|