/external/tensorflow/tensorflow/lite/delegates/hexagon/ |
D | utils.cc | 145 {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteUInt8, kTfLiteInt8}})) in IsNodeSupportedByHexagon() 154 {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteUInt8, kTfLiteInt8}})) in IsNodeSupportedByHexagon() 164 {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteUInt8, kTfLiteInt8}})) in IsNodeSupportedByHexagon() 178 {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteInt32}}) && in IsNodeSupportedByHexagon() 183 node, context, {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteInt32}}) || in IsNodeSupportedByHexagon() 198 node, context, {{kTfLiteUInt8, kTfLiteInt8}, {kTfLiteInt32}}) && in IsNodeSupportedByHexagon() 203 {{kTfLiteUInt8, kTfLiteInt8}, in IsNodeSupportedByHexagon() 204 {kTfLiteUInt8, kTfLiteInt8}, in IsNodeSupportedByHexagon() 227 if (!TensorTypeMatch(node->inputs->data[i], context, kTfLiteUInt8) && in IsNodeSupportedByHexagon() 234 if (!InputsWithCorrectTypes(node, context, {{kTfLiteUInt8, kTfLiteInt8}})) in IsNodeSupportedByHexagon() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | quantize.cc | 117 TF_LITE_ENSURE(context, output->type == kTfLiteUInt8 || in Prepare() 128 input->type == kTfLiteInt8 || input->type == kTfLiteUInt8); in Prepare() 130 context, output->type == kTfLiteUInt8 || output->type == kTfLiteInt8); in Prepare() 175 case kTfLiteUInt8: in Eval() 236 case kTfLiteUInt8: in Eval() 247 case kTfLiteUInt8: { in Eval() 258 case kTfLiteUInt8: in Eval()
|
D | l2norm.cc | 56 output->type == kTfLiteUInt8 || in Prepare() 60 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { in Prepare() 62 if (output->type == kTfLiteUInt8) { in Prepare() 115 } else if (output->type == kTfLiteUInt8) { in Eval()
|
D | arg_min_max.cc | 98 case kTfLiteUInt8: in Prepare() 156 case kTfLiteUInt8: in Eval() 178 case kTfLiteUInt8: in Eval() 208 case kTfLiteUInt8: in Eval() 230 case kTfLiteUInt8: in Eval()
|
D | activations.cc | 123 if (input->type == kTfLiteUInt8) { in CheckOutputQuantParams() 283 if (input->type == kTfLiteInt8 || input->type == kTfLiteUInt8 || in ReluPrepare() 316 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { in HardSwishPrepare() 360 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8 || in LeakyReluPrepare() 396 if (input->type == kTfLiteUInt8 || input->type == kTfLiteInt8) { in TanhPrepare() 415 if (input->type == kTfLiteUInt8) { in TanhPrepare() 491 if (input->type == kTfLiteUInt8 || input->type == kTfLiteInt8) { in SigmoidPrepare() 492 if (input->type == kTfLiteUInt8) { in SigmoidPrepare() 520 if (input->type == kTfLiteUInt8) { in SigmoidPrepare() 593 input->type == kTfLiteUInt8 || in SoftmaxPrepare() [all …]
|
D | div.cc | 100 if (output->type == kTfLiteUInt8) { in Prepare() 165 if (input1->type == kTfLiteUInt8 && input2->type == kTfLiteUInt8 && in EvalQuantized() 166 output->type == kTfLiteUInt8) { in EvalQuantized() 221 } else if (output->type == kTfLiteUInt8) { in Eval()
|
D | comparisons.cc | 87 if (input1->type == kTfLiteUInt8 || input1->type == kTfLiteInt8) { in ComparisonQuantized() 181 case kTfLiteUInt8: in EqualEval() 231 case kTfLiteUInt8: in NotEqualEval() 277 case kTfLiteUInt8: in GreaterEval() 318 case kTfLiteUInt8: in GreaterEqualEval() 359 case kTfLiteUInt8: in LessEval() 400 case kTfLiteUInt8: in LessEqualEval()
|
D | kernel_util_test.cc | 379 input.type = kTfLiteUInt8; in TEST_F() 396 filter.type = kTfLiteUInt8; in TEST_F() 418 bias.type = kTfLiteUInt8; in TEST_F() 438 output.type = kTfLiteUInt8; in TEST_F() 594 input.type = kTfLiteUInt8; in TEST_F() 611 filter.type = kTfLiteUInt8; in TEST_F() 649 output.type = kTfLiteUInt8; in TEST_F() 693 input.type = kTfLiteUInt8; in TEST_F() 710 filter.type = kTfLiteUInt8; in TEST_F() 732 output.type = kTfLiteUInt8; in TEST_F()
|
D | fully_connected.cc | 59 ledger->type = kTfLiteUInt8; in CreateLedgerTensor() 134 ((filter->type == kTfLiteUInt8) || (filter->type == kTfLiteInt8)); in CheckTypes() 147 TF_LITE_ENSURE_TYPES_EQ(context, input->type, kTfLiteUInt8); in CheckTypes() 148 TF_LITE_ENSURE_TYPES_EQ(context, filter->type, kTfLiteUInt8); in CheckTypes() 156 TF_LITE_ENSURE(context, input->type == kTfLiteUInt8 || in CheckTypes() 159 TF_LITE_ENSURE(context, output->type == kTfLiteUInt8 || in CheckTypes() 235 if (input->type == kTfLiteUInt8 || input->type == kTfLiteInt8 || in PrepareImpl() 260 (filter->type == kTfLiteUInt8 || filter->type == kTfLiteInt8)); in PrepareImpl() 384 ((filter->type == kTfLiteUInt8) || (filter->type == kTfLiteInt8)); in Prepare() 725 case kTfLiteUInt8: in EvalQuantized() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | softmax_common.cc | 35 if (input->type == kTfLiteUInt8 || input->type == kTfLiteInt8 || in CalculateSoftmaxParams() 37 if (input->type == kTfLiteUInt8) { in CalculateSoftmaxParams() 38 TF_LITE_ENSURE_TYPES_EQ(context, output->type, kTfLiteUInt8); in CalculateSoftmaxParams() 122 input->type == kTfLiteUInt8 || in SoftmaxPrepare()
|
D | pooling.cc | 83 TFLITE_DCHECK(input->type == kTfLiteUInt8 || input->type == kTfLiteInt8); in AverageEvalQuantized() 95 if (input->type == kTfLiteUInt8) { in AverageEvalQuantized() 140 if (input->type == kTfLiteUInt8) { in MaxEvalQuantized() 172 case kTfLiteUInt8: in AverageEval() 200 case kTfLiteUInt8: in MaxEval() 234 } else if (input->type == kTfLiteInt8 || input->type == kTfLiteUInt8) { in Prepare()
|
D | div.cc | 100 if (output->type == kTfLiteUInt8) { in Prepare() 165 if (input1->type == kTfLiteUInt8 && input2->type == kTfLiteUInt8 && in EvalQuantized() 166 output->type == kTfLiteUInt8) { in EvalQuantized() 221 } else if (output->type == kTfLiteUInt8) { in Eval()
|
D | l2norm.cc | 60 output->type == kTfLiteUInt8 || in Prepare() 64 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { in Prepare() 113 } else if (output->type == kTfLiteUInt8) { in Eval()
|
D | softmax.cc | 33 if (input->type == kTfLiteUInt8) { in SoftmaxQuantized() 79 case kTfLiteUInt8: in SoftmaxEval()
|
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/ |
D | tflite_inference_stage_test.cc | 105 EXPECT_EQ(tensor->type, kTfLiteUInt8); in TEST() 115 EXPECT_EQ(tensor->type, kTfLiteUInt8); in TEST() 139 EXPECT_EQ(tensor->type, kTfLiteUInt8); in TEST() 149 EXPECT_EQ(tensor->type, kTfLiteUInt8); in TEST()
|
D | inference_profiler_stage.cc | 98 if (model_input_type == kTfLiteUInt8 || model_input_type == kTfLiteInt8 || in Init() 118 if (model_output_type == kTfLiteUInt8 || model_output_type == kTfLiteInt8 || in Init() 143 if (model_input_type == kTfLiteUInt8) { in Run() 172 if (model_output_type == kTfLiteUInt8) { in Run()
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | label_image_test.cc | 32 s.input_type = kTfLiteUInt8; in TEST() 49 get_top_n<uint8_t>(in, 10, 5, 0.025, &top_results, kTfLiteUInt8); in TEST()
|
/external/libtextclassifier/native/tensorflow_models/seq_flow_lite/tflite_ops/ |
D | layer_norm.cc | 59 TF_LITE_ENSURE_EQ(context, input->type, kTfLiteUInt8); in Resize() 62 TF_LITE_ENSURE_EQ(context, offset->type, kTfLiteUInt8); in Resize() 65 TF_LITE_ENSURE_EQ(context, scale->type, kTfLiteUInt8); in Resize() 72 TF_LITE_ENSURE_EQ(context, output->type, kTfLiteUInt8); in Resize() 302 if (input->type == kTfLiteUInt8) { in Eval() 316 if (input->type == kTfLiteUInt8) { in Eval()
|
/external/tensorflow/tensorflow/lite/delegates/nnapi/ |
D | nnapi_delegate.cc | 150 case kTfLiteUInt8: in IsFloatOrUInt8() 159 case kTfLiteUInt8: in IsQuantized() 180 case kTfLiteUInt8: in IsFloatOrQuantized() 201 case kTfLiteUInt8: in IsFloatQuantizedOrInt32() 247 weights_tensor.type == kTfLiteUInt8) && in NeedInt8Conversion() 402 case kTfLiteUInt8: in ConvertTensorTypeToNNType() 418 if (ann_type_equivalent == kTfLiteUInt8) { in ConvertTensorTypeToNNType() 875 if (tensor.type == kTfLiteInt8 || tensor.type == kTfLiteUInt8) { in TransformHardSwishIntoSupportedOps() 1282 if (hybrid_op && (tensor_type == kTfLiteUInt8)) { in AddTensor() 1296 case kTfLiteUInt8: in AddTensor() [all …]
|
/external/tensorflow/tensorflow/lite/ |
D | type_to_tflitetype_test.cc | 37 EXPECT_EQ(kTfLiteUInt8, in TEST() 38 typeToTfLiteType<TfLiteTypeToType<kTfLiteUInt8>::Type>()); in TEST()
|
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis_nn/ |
D | mul.cc | 60 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { in CalculateOpData() 106 if (output->type == kTfLiteInt8 || output->type == kTfLiteUInt8) { in EvalQuantized() 143 } else if (output->type == kTfLiteUInt8) { in EvalQuantized() 196 case kTfLiteUInt8: in Eval()
|
/external/tensorflow/tensorflow/lite/delegates/flex/ |
D | util.cc | 73 case kTfLiteUInt8: in GetTensorFlowDataType() 109 return kTfLiteUInt8; in GetTensorFlowLiteType()
|
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/ |
D | pooling.cc | 105 } else if (input->type == kTfLiteInt8 || input->type == kTfLiteUInt8) { in Prepare() 242 TFLITE_DCHECK(input->type == kTfLiteUInt8 || input->type == kTfLiteInt8); in AverageEvalQuantized() 254 if (input->type == kTfLiteUInt8) { in AverageEvalQuantized() 312 if (input->type == kTfLiteUInt8) { in MaxEvalQuantized() 350 case kTfLiteUInt8: in AverageEval() 381 case kTfLiteUInt8: in MaxEval()
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/apollo3/ |
D | pushbutton_test.cc | 92 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, input->type); in TF_LITE_MICRO_TEST() 113 TF_LITE_MICRO_EXPECT_EQ(kTfLiteUInt8, output->type); in TF_LITE_MICRO_TEST()
|
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/ |
D | tflite_driver.cc | 185 case kTfLiteUInt8: in Check() 293 case kTfLiteUInt8: { in SetInput() 332 case kTfLiteUInt8: in SetExpectation() 399 case kTfLiteUInt8: in ReadOutput()
|