Home
last modified time | relevance | path

Searched refs:kTfLiteUInt8 (Results 1 – 25 of 186) sorted by relevance

12345678

/external/tensorflow/tensorflow/lite/delegates/hexagon/
Dutils.cc145 {{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/
Dquantize.cc117 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()
Dl2norm.cc56 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()
Darg_min_max.cc98 case kTfLiteUInt8: in Prepare()
156 case kTfLiteUInt8: in Eval()
178 case kTfLiteUInt8: in Eval()
208 case kTfLiteUInt8: in Eval()
230 case kTfLiteUInt8: in Eval()
Dactivations.cc123 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 …]
Ddiv.cc100 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()
Dcomparisons.cc87 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()
Dkernel_util_test.cc379 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()
Dfully_connected.cc59 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/
Dsoftmax_common.cc35 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()
Dpooling.cc83 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()
Ddiv.cc100 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()
Dl2norm.cc60 output->type == kTfLiteUInt8 || in Prepare()
64 if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { in Prepare()
113 } else if (output->type == kTfLiteUInt8) { in Eval()
Dsoftmax.cc33 if (input->type == kTfLiteUInt8) { in SoftmaxQuantized()
79 case kTfLiteUInt8: in SoftmaxEval()
/external/tensorflow/tensorflow/lite/examples/label_image/
Dlabel_image_test.cc32 s.input_type = kTfLiteUInt8; in TEST()
49 get_top_n<uint8_t>(in, 10, 5, 0.025, &top_results, kTfLiteUInt8); in TEST()
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/
Dtflite_inference_stage_test.cc105 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()
Dinference_profiler_stage.cc98 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/libtextclassifier/native/tensorflow_models/seq_flow_lite/tflite_ops/
Dlayer_norm.cc59 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/
Dnnapi_delegate.cc150 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/
Dtype_to_tflitetype_test.cc37 EXPECT_EQ(kTfLiteUInt8, in TEST()
38 typeToTfLiteType<TfLiteTypeToType<kTfLiteUInt8>::Type>()); in TEST()
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis_nn/
Dmul.cc60 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/
Dutil.cc73 case kTfLiteUInt8: in GetTensorFlowDataType()
109 return kTfLiteUInt8; in GetTensorFlowLiteType()
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dpooling.cc105 } 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/
Dpushbutton_test.cc92 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/
Dtflite_driver.cc185 case kTfLiteUInt8: in Check()
293 case kTfLiteUInt8: { in SetInput()
332 case kTfLiteUInt8: in SetExpectation()
399 case kTfLiteUInt8: in ReadOutput()

12345678