Home
last modified time | relevance | path

Searched refs:TfLiteStatus (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions.h63 TfLiteStatus ParseOpData(const Operator* op, BuiltinOperator op_type,
69 TfLiteStatus ConvertTensorType(TensorType tensor_type, TfLiteType* type,
72 TfLiteStatus ParseAbs(const Operator* op, ErrorReporter* error_reporter,
75 TfLiteStatus ParseAdd(const Operator* op, ErrorReporter* error_reporter,
78 TfLiteStatus ParseAddN(const Operator* op, ErrorReporter* error_reporter,
81 TfLiteStatus ParseArgMax(const Operator* op, ErrorReporter* error_reporter,
84 TfLiteStatus ParseArgMin(const Operator* op, ErrorReporter* error_reporter,
87 TfLiteStatus ParseBatchMatMul(const Operator* op, ErrorReporter* error_reporter,
91 TfLiteStatus ParseBatchToSpaceNd(const Operator* op,
96 TfLiteStatus ParseCeil(const Operator* op, ErrorReporter* error_reporter,
[all …]
Dflatbuffer_conversions.cc79 TfLiteStatus FlatBufferIntVectorToArray( in FlatBufferIntVectorToArray()
135 TfLiteStatus ParseOpDataTfLite(const Operator* op, BuiltinOperator op_type, in ParseOpDataTfLite()
836 TfLiteStatus ConvertTensorType(TensorType tensor_type, TfLiteType* type, in ConvertTensorType()
898 TfLiteStatus ParseAbs(const Operator*, ErrorReporter*, BuiltinDataAllocator*, in ParseAbs()
903 TfLiteStatus ParseAdd(const Operator* op, ErrorReporter* error_reporter, in ParseAdd()
928 TfLiteStatus ParseAddN(const Operator* op, ErrorReporter* error_reporter, in ParseAddN()
933 TfLiteStatus ParseArgMax(const Operator* op, ErrorReporter* error_reporter, in ParseArgMax()
958 TfLiteStatus ParseArgMin(const Operator* op, ErrorReporter* error_reporter, in ParseArgMin()
986 TfLiteStatus ParseBatchMatMul(const Operator* op, ErrorReporter* error_reporter, in ParseBatchMatMul()
1007 TfLiteStatus ParseBatchToSpaceNd(const Operator*, ErrorReporter*, in ParseBatchToSpaceNd()
[all …]
/external/tensorflow/tensorflow/lite/micro/
Dmicro_mutable_op_resolver.h82 TfLiteStatus AddCustom(const char* name, TfLiteRegistration* registration) { in AddCustom()
115 TfLiteStatus AddAbs() { in AddAbs()
120 TfLiteStatus AddAdd() { in AddAdd()
125 TfLiteStatus AddArgMax() { in AddArgMax()
130 TfLiteStatus AddArgMin() { in AddArgMin()
135 TfLiteStatus AddAveragePool2D() { in AddAveragePool2D()
141 TfLiteStatus AddBatchToSpaceND() { in AddBatchToSpaceND()
146 TfLiteStatus AddCast() { in AddCast()
150 TfLiteStatus AddCeil() { in AddCeil()
155 TfLiteStatus AddCircularBuffer() { in AddCircularBuffer()
[all …]
Dmicro_allocator.h37 TfLiteStatus InitializeTfLiteTensorFromFlatbuffer(
124 TfLiteStatus StartModelAllocation(
137 TfLiteStatus FinishModelAllocation(
174 TfLiteStatus RequestScratchBufferInArena(size_t bytes, int* buffer_idx);
180 TfLiteStatus FinishPrepareNodeAllocations(int node_id);
194 virtual TfLiteStatus AllocateNodeAndRegistrations(
201 virtual TfLiteStatus PrepareNodeAndRegistrationDataFromFlatbuffer(
209 virtual TfLiteStatus AllocateTfLiteEvalTensors(
213 virtual TfLiteStatus AllocateVariables(const SubGraph* subgraph,
225 virtual TfLiteStatus PopulateTfLiteTensorFromFlatbuffer(
[all …]
Drecording_micro_allocator.cc132 TfLiteStatus RecordingMicroAllocator::AllocateNodeAndRegistrations( in AllocateNodeAndRegistrations()
136 TfLiteStatus status = MicroAllocator::AllocateNodeAndRegistrations( in AllocateNodeAndRegistrations()
155 TfLiteStatus
161 TfLiteStatus status = in PrepareNodeAndRegistrationDataFromFlatbuffer()
169 TfLiteStatus RecordingMicroAllocator::AllocateTfLiteEvalTensors( in AllocateTfLiteEvalTensors()
173 TfLiteStatus status = in AllocateTfLiteEvalTensors()
188 TfLiteStatus RecordingMicroAllocator::AllocateVariables( in AllocateVariables()
192 TfLiteStatus status = in AllocateVariables()
211 TfLiteStatus RecordingMicroAllocator::PopulateTfLiteTensorFromFlatbuffer( in PopulateTfLiteTensorFromFlatbuffer()
216 TfLiteStatus status = MicroAllocator::PopulateTfLiteTensorFromFlatbuffer( in PopulateTfLiteTensorFromFlatbuffer()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.h63 TfLiteStatus SetInputs(std::vector<int> inputs);
68 TfLiteStatus SetOutputs(std::vector<int> outputs);
73 TfLiteStatus SetVariables(std::vector<int> variables);
84 TfLiteStatus AddNodeWithParameters(const std::vector<int>& inputs,
95 TfLiteStatus AddTensors(int tensors_to_add,
102 inline TfLiteStatus SetTensorParametersReadOnly(
111 TfLiteStatus SetTensorParametersReadOnly(
121 inline TfLiteStatus SetTensorParametersReadWrite(
134 TfLiteStatus SetTensorParametersReadWrite(
142 TfLiteStatus SetExecutionPlan(const std::vector<int>& new_plan);
[all …]
Dsubgraph.cc68 TfLiteStatus ReportOpError(TfLiteContext* context, const TfLiteNode& node, in ReportOpError()
86 TfLiteStatus ForbiddenContextFunction(TfLiteContext* context, ...) { in ForbiddenContextFunction()
158 TfLiteStatus ValidateCustomAllocationForTensor( in ValidateCustomAllocationForTensor()
271 TfLiteStatus Subgraph::ReplaceNodeSubsetsWithDelegateKernels( in ReplaceNodeSubsetsWithDelegateKernels()
373 TfLiteStatus Subgraph::ReplaceNodeSubsetsWithDelegateKernels( in ReplaceNodeSubsetsWithDelegateKernels()
469 TfLiteStatus Subgraph::GetExecutionPlan(TfLiteIntArray** execution_plan) { in GetExecutionPlan()
482 TfLiteStatus Subgraph::GetExecutionPlan(struct TfLiteContext* context, in GetExecutionPlan()
497 TfLiteStatus Subgraph::PreviewDelegatePartitioning( in PreviewDelegatePartitioning()
531 TfLiteStatus Subgraph::PreviewDelegatePartitioning( in PreviewDelegatePartitioning()
539 TfLiteStatus Subgraph::SetInputs(std::vector<int> inputs) { in SetInputs()
[all …]
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.h29 TfLiteStatus NumElements(const TensorT& tensor, uint64_t* num_elements);
44 TfLiteStatus FillPerChannelMinMax(const float* const input,
62 TfLiteStatus SymmetricPerChannelQuantization(TensorT* tensor,
78 TfLiteStatus SymmetricQuantizeTensor(ModelT* model, TensorT* tensor);
81 TfLiteStatus QuantizeTensorFloat16(ModelT* model, TensorT* tensor);
84 TfLiteStatus AddQuantizationParams(const std::vector<float>& scales,
93 TfLiteStatus GetSymmetricScalesFromMaxMin(QuantizationParametersT* quant_params,
99 TfLiteStatus AdjustWeightsForBiasScale(QuantizationParametersT* quant_params,
106 TfLiteStatus SymmetricQuantizeTensorPerChannel(ModelT* model, TensorT* tensor,
111 TfLiteStatus SymmetricQuantizeFloatsToInt16(ModelT* model, TensorT* tensor,
[all …]
Dquantize_model.h37 TfLiteStatus QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
44 TfLiteStatus QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
53 TfLiteStatus QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
62 TfLiteStatus QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
72 TfLiteStatus QuantizeModelAllOperators(flatbuffers::FlatBufferBuilder* builder,
83 TfLiteStatus QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
/external/tensorflow/tensorflow/lite/
Darena_planner.h59 TfLiteStatus ResetAllocations() override;
60 TfLiteStatus ResetAllocationsAfter(int node) override;
61 TfLiteStatus PlanAllocations() override;
62 TfLiteStatus ExecuteAllocations(int first_node, int last_node) override;
63 TfLiteStatus ReleaseNonPersistentMemory() override;
64 TfLiteStatus AcquireNonPersistentMemory() override;
73 TfLiteStatus Commit();
87 TfLiteStatus CalculateAllocations(int first_node, int last_node);
91 TfLiteStatus ResolveTensorAllocation(int tensor_index);
95 TfLiteStatus CalculateAllocationOfInternalTensors(int node_index);
[all …]
Dinterpreter.h112 TfLiteStatus SetInputs(std::vector<int> inputs);
117 TfLiteStatus SetOutputs(std::vector<int> outputs);
122 TfLiteStatus SetVariables(std::vector<int> variables);
133 TfLiteStatus AddNodeWithParameters(const std::vector<int>& inputs,
143 TfLiteStatus AddTensors(int tensors_to_add,
150 TfLiteStatus SetTensorParametersReadOnly(
156 inline TfLiteStatus SetTensorParametersReadOnly(
166 TfLiteStatus SetTensorParametersReadOnly(
175 TfLiteStatus SetTensorParametersReadWrite(int tensor_index, TfLiteType type,
182 inline TfLiteStatus SetTensorParametersReadWrite(
[all …]
Dinterpreter.cc80 TfLiteStatus status = (a); \
163 TfLiteStatus Interpreter::SetCustomAllocationForTensor( in SetCustomAllocationForTensor()
169 TfLiteStatus Interpreter::SetInputs(std::vector<int> inputs) { in SetInputs()
173 TfLiteStatus Interpreter::SetOutputs(std::vector<int> outputs) { in SetOutputs()
177 TfLiteStatus Interpreter::SetVariables(std::vector<int> variables) { in SetVariables()
181 TfLiteStatus Interpreter::AllocateTensors() { in AllocateTensors()
255 TfLiteStatus Interpreter::AddNodeWithParameters( in AddNodeWithParameters()
264 TfLiteStatus Interpreter::ResizeInputTensor(int tensor_index, in ResizeInputTensor()
269 TfLiteStatus Interpreter::ResizeInputTensorStrict( in ResizeInputTensorStrict()
274 TfLiteStatus Interpreter::ReleaseNonPersistentMemory() { in ReleaseNonPersistentMemory()
[all …]
Dinterpreter_builder.h72 TfLiteStatus operator()(std::unique_ptr<Interpreter>* interpreter);
73 TfLiteStatus operator()(std::unique_ptr<Interpreter>* interpreter,
86 TfLiteStatus BuildLocalIndexToRegistrationMapping();
87 TfLiteStatus ParseNodes(
90 TfLiteStatus ParseTensors(
94 TfLiteStatus ApplyDelegates(Interpreter* interpreter, int num_threads);
95 TfLiteStatus ParseQuantization(const QuantizationParameters* src_quantization,
98 TfLiteStatus ParseSparsity(const SparsityParameters* src_sparsity,
100 TfLiteStatus ParseSignatureDefs(
Dmemory_planner.h31 virtual TfLiteStatus PlanAllocations() = 0;
35 virtual TfLiteStatus ExecuteAllocations(int first_node, int last_node) = 0;
40 virtual TfLiteStatus ResetAllocations() = 0;
43 virtual TfLiteStatus ResetAllocationsAfter(int node) = 0;
55 virtual TfLiteStatus ReleaseNonPersistentMemory() = 0;
58 virtual TfLiteStatus AcquireNonPersistentMemory() = 0;
Dsimple_memory_arena.h74 TfLiteStatus Allocate(TfLiteContext* context, size_t alignment, size_t size,
78 TfLiteStatus Deallocate(TfLiteContext* context,
88 TfLiteStatus Commit(TfLiteContext* context);
90 TfLiteStatus ResolveAlloc(TfLiteContext* context,
97 TfLiteStatus ClearPlan();
102 TfLiteStatus ReleaseBuffer();
/external/tensorflow/tensorflow/lite/micro/kernels/
Dconv_test.h29 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
33 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
37 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
41 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
48 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
55 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
62 TfLiteStatus TestConvFloat(const int* input_dims_data, const float* input_data,
70 TfLiteStatus TestConvQuantizedPerLayer(
80 TfLiteStatus TestConvQuantizedPerChannel(
Delementwise.cc40 TfLiteStatus GenericPrepare(TfLiteContext* context, TfLiteNode* node) { in GenericPrepare()
57 inline TfLiteStatus EvalImpl(TfLiteContext* context, TfLiteNode* node, in EvalImpl()
71 inline TfLiteStatus EvalNumeric(TfLiteContext* context, TfLiteNode* node, in EvalNumeric()
76 inline TfLiteStatus EvalLogical(TfLiteContext* context, TfLiteNode* node, in EvalLogical()
81 TfLiteStatus AbsEval(TfLiteContext* context, TfLiteNode* node) { in AbsEval()
85 TfLiteStatus SinEval(TfLiteContext* context, TfLiteNode* node) { in SinEval()
89 TfLiteStatus CosEval(TfLiteContext* context, TfLiteNode* node) { in CosEval()
93 TfLiteStatus LogEval(TfLiteContext* context, TfLiteNode* node) { in LogEval()
97 TfLiteStatus SqrtEval(TfLiteContext* context, TfLiteNode* node) { in SqrtEval()
101 TfLiteStatus RsqrtEval(TfLiteContext* context, TfLiteNode* node) { in RsqrtEval()
[all …]
Dconv_test_common.cc22 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size, in InvokeConv()
34 TfLiteStatus status = runner.InitAndPrepare(init_data); in InvokeConv()
42 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size, in ValidateConvGoldens()
48 TfLiteStatus status = InvokeConv(tensors, tensors_size, output_length, in ValidateConvGoldens()
60 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size, in InvokeConv()
67 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size, in InvokeConv()
74 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size, in InvokeConv()
81 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size, in ValidateConvGoldens()
92 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size, in ValidateConvGoldens()
103 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size, in ValidateConvGoldens()
[all …]
/external/tensorflow/tensorflow/lite/c/
Dcommon.h74 TfLiteStatus (*Refresh)(struct TfLiteContext* context);
194 const TfLiteStatus s = (a); \
237 const TfLiteStatus s = (status); \
640 TfLiteStatus (*GetExecutionPlan)(struct TfLiteContext* context,
651 TfLiteStatus (*ResizeTensor)(struct TfLiteContext*, TfLiteTensor* tensor,
659 TfLiteStatus (*AddTensors)(struct TfLiteContext*, int tensors_to_add,
664 TfLiteStatus (*GetNodeAndRegistration)(
670 TfLiteStatus (*ReplaceNodeSubsetsWithDelegateKernels)(
709 TfLiteStatus (*AllocateBufferForEval)(struct TfLiteContext* ctx, size_t bytes,
717 TfLiteStatus (*RequestScratchBufferInArena)(struct TfLiteContext* ctx,
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dkernel_util.h51 TfLiteStatus GetInputSafe(const TfLiteContext* context, const TfLiteNode* node,
82 TfLiteStatus GetOutputSafe(const TfLiteContext* context, const TfLiteNode* node,
118 TfLiteStatus GetTemporarySafe(const TfLiteContext* context,
142 TfLiteStatus GetIntermediatesSafe(const TfLiteContext* context,
212 TfLiteStatus PopulateConvolutionQuantizationParams(
219 TfLiteStatus PopulateConvolutionQuantizationParams(
229 TfLiteStatus GetQuantizedConvolutionMultipler(TfLiteContext* context,
236 TfLiteStatus GetQuantizedConvolutionMultipler(TfLiteContext* context,
244 TfLiteStatus CalculateActivationRangeQuantized(TfLiteContext* context,
275 TfLiteStatus CalculateShapeForBroadcast(TfLiteContext* context,
[all …]
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_model.h178 virtual TfLiteStatus Init() = 0;
179 TfLiteStatus Run(int argc, char** argv);
180 virtual TfLiteStatus Run();
192 TfLiteStatus ParseFlags(int* argc, char** argv);
196 virtual TfLiteStatus ValidateParams();
198 TfLiteStatus ParseFlags(int argc, char** argv) { in ParseFlags()
208 TfLiteStatus* invoke_status);
211 virtual TfLiteStatus PrepareInputData();
213 virtual TfLiteStatus ResetInputsAndOutputs();
214 virtual TfLiteStatus RunImpl() = 0;
Dbenchmark_tflite_model.h60 TfLiteStatus ValidateParams() override;
62 TfLiteStatus Init() override;
63 TfLiteStatus RunImpl() override;
67 TfLiteStatus PrepareInputData() override;
68 TfLiteStatus ResetInputsAndOutputs() override;
72 virtual TfLiteStatus LoadModel();
78 virtual TfLiteStatus InitInterpreter();
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dscratch_buf_mgr.h40 TfLiteStatus get_arc_scratch_buffer_for_conv_tensors(TfLiteContext* context,
59 TfLiteStatus get_arc_scratch_buffer_for_pooling_tensors(TfLiteContext* context,
77 TfLiteStatus get_arc_scratch_buffer_for_fully_connect_tensors(
101 TfLiteStatus arc_scratch_buffer_calc_slice_size_io(
121 TfLiteStatus arc_scratch_buffer_calc_slice_size_weights(
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/
Dconv_2d_builder.h43 TfLiteStatus PopulateSubGraph(const TfLiteIntArray* inputs,
47 TfLiteStatus RegisterOutputs(const TfLiteIntArray* outputs,
53 TfLiteStatus InitializeWeightsNodes(const TfLiteIntArray* inputs,
58 TfLiteStatus InitializeBiasNodes(const TfLiteIntArray* inputs,
86 TfLiteStatus ProcessPerChannelQuantizedWeights(
91 TfLiteStatus ProcessPerChannelQuantizedBias(
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/arduino/
Dimage_provider.cc72 TfLiteStatus InitCamera(tflite::ErrorReporter* error_reporter) { in InitCamera()
106 TfLiteStatus PerformCapture(tflite::ErrorReporter* error_reporter) { in PerformCapture()
124 TfLiteStatus ReadData(tflite::ErrorReporter* error_reporter) { in ReadData()
151 TfLiteStatus DecodeAndProcessImage(tflite::ErrorReporter* error_reporter, in DecodeAndProcessImage()
240 TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width, in GetImage()
244 TfLiteStatus init_status = InitCamera(error_reporter); in GetImage()
252 TfLiteStatus capture_status = PerformCapture(error_reporter); in GetImage()
258 TfLiteStatus read_data_status = ReadData(error_reporter); in GetImage()
264 TfLiteStatus decode_status = DecodeAndProcessImage( in GetImage()

12345678910>>...24