/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | xnnpack_delegate.cc | 1044 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/ |
D | arena_planner.cc | 62 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/ |
D | micro_allocator.cc | 200 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 …]
|
D | memory_helpers.cc | 109 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/ |
D | unique.cc | 100 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()
|
D | rfft2d.cc | 69 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/ |
D | object_detection_stage.cc | 51 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()
|
D | tflite_inference_stage.cc | 66 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/ |
D | util.h | 72 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/ |
D | interpreter_utils.cc | 39 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/ |
D | min_max_builder.cc | 34 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()
|
D | squared_difference.cc | 49 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()
|
D | transpose_conv_2d_builder.cc | 77 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()
|
D | arithmetic_builder.cc | 43 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()
|
D | quantize_builder.cc | 39 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input_tensor)); in PopulateSubGraph() 40 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, output_tensor)); in PopulateSubGraph()
|
D | hardswish_builder.cc | 34 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input1_tensor)); in PopulateSubGraph() 37 TF_LITE_ENSURE_STATUS( in PopulateSubGraph()
|
D | arg_min_max_builder.cc | 57 TF_LITE_ENSURE_STATUS(ComputeAndAddMinAndMax(context, input_tensor)); in PopulateSubGraph() 63 TF_LITE_ENSURE_STATUS(GetSizeOfType( in PopulateSubGraph()
|
/external/tensorflow/tensorflow/lite/core/ |
D | subgraph.cc | 416 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/ |
D | hexagon_delegate_kernel.cc | 84 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/ |
D | calibrator.cc | 212 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()
|
D | calibration_reader.cc | 29 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/ |
D | quantization_utils.cc | 258 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 …]
|
D | quantize_model.cc | 717 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/ |
D | benchmark_model.cc | 196 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/ |
D | nnapi_delegate.cc | 622 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 …]
|