Home
last modified time | relevance | path

Searched refs:TF_LITE_ENSURE_STATUS (Results 1 – 25 of 129) sorted by relevance

123456

/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dxnnpack_delegate.cc1044 TF_LITE_ENSURE_STATUS( in VisitAbsNode()
1048 TF_LITE_ENSURE_STATUS(CheckTensorFloatType( in VisitAbsNode()
1050 TF_LITE_ENSURE_STATUS(CheckTensorNonDynamicAllocation( in VisitAbsNode()
1054 TF_LITE_ENSURE_STATUS(CheckTensorFloatType( in VisitAbsNode()
1056 TF_LITE_ENSURE_STATUS(CheckTensorNonDynamicAllocation( in VisitAbsNode()
1078 TF_LITE_ENSURE_STATUS( in VisitAddNode()
1082 TF_LITE_ENSURE_STATUS(CheckTensorFloatType( in VisitAddNode()
1084 TF_LITE_ENSURE_STATUS(CheckTensorNonDynamicAllocation( in VisitAddNode()
1088 TF_LITE_ENSURE_STATUS(CheckTensorFloatType( in VisitAddNode()
1090 TF_LITE_ENSURE_STATUS(CheckTensorNonDynamicAllocation( in VisitAddNode()
[all …]
/external/tensorflow/tensorflow/lite/
Darena_planner.cc62 TF_LITE_ENSURE_STATUS(arena_.ClearPlan()); in ResetAllocations()
63 TF_LITE_ENSURE_STATUS(persistent_arena_.ClearPlan()); in ResetAllocations()
74 TF_LITE_ENSURE_STATUS(arena_.Deallocate(context_, allocs_[i])); in ResetAllocationsAfter()
86 TF_LITE_ENSURE_STATUS(ResetAllocations()); in PlanAllocations()
132 TF_LITE_ENSURE_STATUS(allocate(0, tensor_index)); in PlanAllocations()
142 TF_LITE_ENSURE_STATUS(allocate(0, tensor_index)); in PlanAllocations()
166 TF_LITE_ENSURE_STATUS(allocate(i, tensor_index)); in PlanAllocations()
178 TF_LITE_ENSURE_STATUS(deallocate(i, tensor_index)); in PlanAllocations()
212 TF_LITE_ENSURE_STATUS(CalculateAllocations(first_node, last_node)); in ExecuteAllocations()
213 TF_LITE_ENSURE_STATUS(Commit()); in ExecuteAllocations()
[all …]
/external/tensorflow/tensorflow/lite/micro/
Dmicro_allocator.cc200 TF_LITE_ENSURE_STATUS( in AddTensors()
348 TF_LITE_ENSURE_STATUS( in CreatePlan()
352 TF_LITE_ENSURE_STATUS(planner->AddBuffer( in CreatePlan()
371 TF_LITE_ENSURE_STATUS( in CommitPlan()
469 TF_LITE_ENSURE_STATUS(ConvertTensorType(flatbuffer_tensor.type(), in InitializeTfLiteTensorFromFlatbuffer()
490 TF_LITE_ENSURE_STATUS(BytesRequiredForTensor( in InitializeTfLiteTensorFromFlatbuffer()
502 TF_LITE_ENSURE_STATUS(FlatBufferVectorToTfLiteTypeArray( in InitializeTfLiteTensorFromFlatbuffer()
555 TF_LITE_ENSURE_STATUS(FlatBufferVectorToTfLiteTypeArray( in InitializeTfLiteTensorFromFlatbuffer()
580 TF_LITE_ENSURE_STATUS(ConvertTensorType(flatbuffer_tensor.type(), in InitializeTfLiteEvalTensorFromFlatbuffer()
590 TF_LITE_ENSURE_STATUS(FlatBufferVectorToTfLiteTypeArray( in InitializeTfLiteEvalTensorFromFlatbuffer()
[all …]
Dmemory_helpers.cc109 TF_LITE_ENSURE_STATUS(ConvertTensorType(flatbuffer_tensor.type(), in BytesRequiredForTensor()
111 TF_LITE_ENSURE_STATUS(TfLiteTypeSizeOf(tf_lite_type, type_size)); in BytesRequiredForTensor()
128 TF_LITE_ENSURE_STATUS(TfLiteTypeSizeOf(eval_tensor->type, &type_size)); in TfLiteEvalTensorByteLength()
/external/tensorflow/tensorflow/lite/kernels/
Dunique.cc100 TF_LITE_ENSURE_STATUS( in EvalImpl()
145 TF_LITE_ENSURE_STATUS(EvalImpl<int8_t>(context, input, node)); in Eval()
148 TF_LITE_ENSURE_STATUS(EvalImpl<int16_t>(context, input, node)); in Eval()
151 TF_LITE_ENSURE_STATUS(EvalImpl<int32_t>(context, input, node)); in Eval()
154 TF_LITE_ENSURE_STATUS(EvalImpl<int64_t>(context, input, node)); in Eval()
157 TF_LITE_ENSURE_STATUS(EvalImpl<float>(context, input, node)); in Eval()
160 TF_LITE_ENSURE_STATUS(EvalImpl<uint8_t>(context, input, node)); in Eval()
Drfft2d.cc69 TF_LITE_ENSURE_STATUS(context->AddTensors(context, 2, &first_new_index)); in InitTemporaryTensors()
132 TF_LITE_ENSURE_STATUS(context->ResizeTensor(context, output, output_shape)); in ResizeOutputandTemporaryTensors()
142 TF_LITE_ENSURE_STATUS(context->ResizeTensor(context, fft_integer_working_area, in ResizeOutputandTemporaryTensors()
153 TF_LITE_ENSURE_STATUS(context->ResizeTensor(context, fft_double_working_area, in ResizeOutputandTemporaryTensors()
199 TF_LITE_ENSURE_STATUS(InitTemporaryTensors(context, node)); in Prepare()
225 TF_LITE_ENSURE_STATUS(ResizeOutputandTemporaryTensors(context, node)); in Prepare()
447 TF_LITE_ENSURE_STATUS(ResizeOutputandTemporaryTensors(context, node)); in Eval()
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/
Dobject_detection_stage.cc51 TF_LITE_ENSURE_STATUS(inference_stage_->Init(delegate_providers)); in Init()
74 TF_LITE_ENSURE_STATUS(preprocessing_stage_->Init()); in Init()
86 TF_LITE_ENSURE_STATUS(eval_stage_->Init()); in Init()
99 TF_LITE_ENSURE_STATUS(preprocessing_stage_->Run()); in Run()
105 TF_LITE_ENSURE_STATUS(inference_stage_->Run()); in Run()
134 TF_LITE_ENSURE_STATUS(eval_stage_->Run()); in Run()
Dtflite_inference_stage.cc66 TF_LITE_ENSURE_STATUS(interpreter_->ResizeInputTensor(i, shapes[j])); in ResizeInputs()
70 TF_LITE_ENSURE_STATUS(interpreter_->AllocateTensors()); in ResizeInputs()
88 TF_LITE_ENSURE_STATUS( in ApplyCustomDelegate()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dutil.h72 TF_LITE_ENSURE_STATUS(input_generator.LoadModel(options.tflite_model)); in RunKernelTest()
73 TF_LITE_ENSURE_STATUS( in RunKernelTest()
76 TF_LITE_ENSURE_STATUS( in RunKernelTest()
97 TF_LITE_ENSURE_STATUS( in RunKernelTest()
/external/tensorflow/tensorflow/lite/delegates/
Dinterpreter_utils.cc39 TF_LITE_ENSURE_STATUS(interpreter->EnsureTensorDataIsReadable(i)); in InvokeWithCPUFallback()
49 TF_LITE_ENSURE_STATUS(interpreter->RemoveAllDelegates()); in InvokeWithCPUFallback()
60 TF_LITE_ENSURE_STATUS(interpreter->Invoke()); in InvokeWithCPUFallback()
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/
Dmin_max_builder.cc34 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, a_tensor)); in PopulateSubGraph()
35 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, b_tensor)); in PopulateSubGraph()
40 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, output_tensor)); in PopulateSubGraph()
Dsquared_difference.cc49 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, tensor_a)); in PopulateSubGraph()
50 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, tensor_b)); in PopulateSubGraph()
53 TF_LITE_ENSURE_STATUS(ComputeMinAndMaxQuantValues( in PopulateSubGraph()
Dtranspose_conv_2d_builder.cc77 TF_LITE_ENSURE_STATUS(ComputeMinAndMaxQuantValues( in PopulateSubGraph()
86 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, data_tensor)); in PopulateSubGraph()
157 TF_LITE_ENSURE_STATUS( in PopulateSubGraph()
171 TF_LITE_ENSURE_STATUS( in PopulateSubGraph()
Darithmetic_builder.cc43 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input1_tensor)); in PopulateSubGraph()
44 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input2_tensor)); in PopulateSubGraph()
47 TF_LITE_ENSURE_STATUS(ComputeMinAndMaxQuantValues( in PopulateSubGraph()
Dquantize_builder.cc39 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input_tensor)); in PopulateSubGraph()
40 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, output_tensor)); in PopulateSubGraph()
Dhardswish_builder.cc34 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input1_tensor)); in PopulateSubGraph()
37 TF_LITE_ENSURE_STATUS( in PopulateSubGraph()
Darg_min_max_builder.cc57 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input_tensor)); in PopulateSubGraph()
63 TF_LITE_ENSURE_STATUS(GetSizeOfType( in PopulateSubGraph()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc416 TF_LITE_ENSURE_STATUS(AddNodeWithParameters( in ReplaceNodeSubsetsWithDelegateKernels()
675 TF_LITE_ENSURE_STATUS(RedoAllDelegates()); in AllocateTensors()
696 TF_LITE_ENSURE_STATUS(memory_planner_->ResetAllocations()); in AllocateTensors()
699 TF_LITE_ENSURE_STATUS(PrepareOpsAndTensors()); in AllocateTensors()
836 TF_LITE_ENSURE_STATUS(UndoAllDelegates()); in ResizeInputTensor()
874 TF_LITE_ENSURE_STATUS(memory_planner_->ReleaseNonPersistentMemory()); in ReleaseNonPersistentMemory()
959 TF_LITE_ENSURE_STATUS(PrepareOpsStartingAt( in PrepareOpsAndTensors()
967 TF_LITE_ENSURE_STATUS( in PrepareOpsAndTensors()
973 TF_LITE_ENSURE_STATUS(memory_planner_->ExecuteAllocations( in PrepareOpsAndTensors()
987 TF_LITE_ENSURE_STATUS( in PrepareOpsAndTensors()
[all …]
/external/tensorflow/tensorflow/lite/delegates/hexagon/
Dhexagon_delegate_kernel.cc84 TF_LITE_ENSURE_STATUS( in Init()
116 TF_LITE_ENSURE_STATUS( in Eval()
250 TF_LITE_ENSURE_STATUS(builder_->AddInputTensors(input_tensors, context)); in BuildGraph()
256 TF_LITE_ENSURE_STATUS( in BuildGraph()
274 TF_LITE_ENSURE_STATUS( in BuildGraph()
276 TF_LITE_ENSURE_STATUS(op_builder->RegisterOutputs(node->outputs, context)); in BuildGraph()
280 TF_LITE_ENSURE_STATUS(builder_->AddOutputTensors(output_tensors, context)); in BuildGraph()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator.cc212 TF_LITE_ENSURE_STATUS(logger->LogTensorValue( in LoggingEval()
219 TF_LITE_ENSURE_STATUS(kernel_invoke(context, node)); in LoggingEval()
221 TF_LITE_ENSURE_STATUS(kernel_invoke_intermediate( in LoggingEval()
234 TF_LITE_ENSURE_STATUS(logger->LogTensorValue( in LoggingEval()
240 TF_LITE_ENSURE_STATUS(logger->LogTensorValue( in LoggingEval()
409 TF_LITE_ENSURE_STATUS(GetNodeOpInfoMapAndContext( in BuildLoggingInterpreter()
415 TF_LITE_ENSURE_STATUS(GetCalibratorRegistry()->CreateCalibrator( in BuildLoggingInterpreter()
Dcalibration_reader.cc29 TF_LITE_ENSURE_STATUS(minmax.Get(&stats.min, &stats.max)); in GetTensorStatsAsMap()
45 TF_LITE_ENSURE_STATUS(minmax.Get(&min, &max)); in AddCalibrationToModel()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc258 TF_LITE_ENSURE_STATUS(GetSymmetricScalesFromMaxMin( in AdjustWeightsForBiasScale()
307 TF_LITE_ENSURE_STATUS( in SymmetricPerChannelQuantization()
356 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricQuantizeFloatsToInt16()
426 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricQuantizeTensorFromMinMax()
462 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricQuantizeTensor()
501 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in QuantizeTensorFloat16()
573 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricQuantizeTensorPerChannel()
586 TF_LITE_ENSURE_STATUS(SymmetricPerChannelQuantization( in SymmetricQuantizeTensorPerChannel()
628 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricPerLayerBiasQuantize()
670 TF_LITE_ENSURE_STATUS(NumElements(*tensor, &num_elements)); in SymmetricPerChannelBiasQuantize()
[all …]
Dquantize_model.cc717 TF_LITE_ENSURE_STATUS(utils::QuantizeActivation( in QuantizeOpInput()
745 TF_LITE_ENSURE_STATUS(utils::QuantizeActivation( in QuantizeOpInput()
1060 TF_LITE_ENSURE_STATUS(QuantizeOpInput(model, subgraph_idx, &op_idx, in QuantizeWeightsInputOutput()
1068 TF_LITE_ENSURE_STATUS( in QuantizeWeightsInputOutput()
1128 TF_LITE_ENSURE_STATUS(QuantizeBias( in QuantizeBiases()
1215 TF_LITE_ENSURE_STATUS(utils::FillPerChannelMinMax( in FillQuantizationParams()
1231 TF_LITE_ENSURE_STATUS(utils::NumElements(*tensor, &input_size)); in FillQuantizationParams()
1340 TF_LITE_ENSURE_STATUS( in EnsureBiasScaleCompatibility()
1393 TF_LITE_ENSURE_STATUS(utils::NumElements(*bias_tensor, &bias_size)); in EnsureBiasScaleCompatibility()
1396 TF_LITE_ENSURE_STATUS(utils::AdjustWeightsForBiasScale( in EnsureBiasScaleCompatibility()
[all …]
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_model.cc196 TF_LITE_ENSURE_STATUS(ParseFlags(argc, argv)); in Run()
201 TF_LITE_ENSURE_STATUS(ValidateParams()); in Run()
208 TF_LITE_ENSURE_STATUS(Init()); in Run()
220 TF_LITE_ENSURE_STATUS(PrepareInputData()); in Run()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc622 TF_LITE_ENSURE_STATUS(GetDeviceHandle(nnapi, context, device_name_ptr, in GetTargetDevices()
3627 TF_LITE_ENSURE_STATUS(GetTargetDevices(context, params->delegate, nnapi_, in Init()
3648 TF_LITE_ENSURE_STATUS(BuildGraph(context, delegate_options, in Init()
4199 TF_LITE_ENSURE_STATUS(GetTargetSdkVersion( in AddOpsAndTensors()
4207 TF_LITE_ENSURE_STATUS( in AddOpsAndTensors()
4234 TF_LITE_ENSURE_STATUS(builder.AddVectorInt8Operand(nullptr, 0)); in AddOpsAndTensors()
4240 TF_LITE_ENSURE_STATUS(builder.AddVectorInt32Operand(nullptr, 0)); in AddOpsAndTensors()
4242 TF_LITE_ENSURE_STATUS(builder.AddVectorInt16Operand(nullptr, 0)); in AddOpsAndTensors()
4250 TF_LITE_ENSURE_STATUS( in AddOpsAndTensors()
4257 TF_LITE_ENSURE_STATUS( in AddOpsAndTensors()
[all …]

123456