Home
last modified time | relevance | path

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

12345678910>>...21

/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 ParseAssignVariable(const Operator* op,
92 TfLiteStatus ParseBatchMatMul(const Operator* op, ErrorReporter* error_reporter,
96 TfLiteStatus ParseBatchToSpaceNd(const Operator* op,
[all …]
Dflatbuffer_conversions.cc79 TfLiteStatus FlatBufferIntVectorToArray( in FlatBufferIntVectorToArray()
146 TfLiteStatus ParseOpDataTfLite(const Operator* op, BuiltinOperator op_type, in ParseOpDataTfLite()
898 TfLiteStatus ConvertTensorType(TensorType tensor_type, TfLiteType* type, in ConvertTensorType()
963 TfLiteStatus ParseAbs(const Operator*, ErrorReporter*, BuiltinDataAllocator*, in ParseAbs()
968 TfLiteStatus ParseAdd(const Operator* op, ErrorReporter* error_reporter, in ParseAdd()
993 TfLiteStatus ParseAddN(const Operator* op, ErrorReporter* error_reporter, in ParseAddN()
998 TfLiteStatus ParseArgMax(const Operator* op, ErrorReporter* error_reporter, in ParseArgMax()
1023 TfLiteStatus ParseArgMin(const Operator* op, ErrorReporter* error_reporter, in ParseArgMin()
1051 TfLiteStatus ParseAssignVariable(const Operator*, ErrorReporter*, in ParseAssignVariable()
1059 TfLiteStatus ParseBatchMatMul(const Operator* op, ErrorReporter* error_reporter, in ParseBatchMatMul()
[all …]
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.h75 TfLiteStatus SetInputs(std::vector<int> inputs);
80 TfLiteStatus SetOutputs(std::vector<int> outputs);
85 TfLiteStatus SetVariables(std::vector<int> variables);
91 TfLiteStatus AddNodeWithParameters(const std::vector<int>& inputs,
102 TfLiteStatus AddTensors(int tensors_to_add,
109 inline TfLiteStatus SetTensorParametersReadOnly(
118 TfLiteStatus SetTensorParametersReadOnly(
128 inline TfLiteStatus SetTensorParametersReadWrite(
141 TfLiteStatus SetTensorParametersReadWrite(
224 TfLiteStatus ResizeInputTensor(int tensor_index,
[all …]
Dsubgraph.cc78 TfLiteStatus ReportOpError(TfLiteContext* context, const TfLiteNode& node, in ReportOpError()
95 TfLiteStatus ForbiddenContextFunction(TfLiteContext* context, ...) { in ForbiddenContextFunction()
174 TfLiteStatus VerifyCustomAllocationForTensor( in VerifyCustomAllocationForTensor()
300 TfLiteStatus Subgraph::ReplaceNodeSubsetsWithDelegateKernels( in ReplaceNodeSubsetsWithDelegateKernels()
402 TfLiteStatus Subgraph::ReplaceNodeSubsetsWithDelegateKernels( in ReplaceNodeSubsetsWithDelegateKernels()
501 TfLiteStatus Subgraph::GetExecutionPlan(TfLiteIntArray** execution_plan) { in GetExecutionPlan()
513 TfLiteStatus Subgraph::GetExecutionPlan(struct TfLiteContext* context, in GetExecutionPlan()
528 TfLiteStatus Subgraph::GetModelMetadata(const char* name, const char** ptr, in GetModelMetadata()
545 TfLiteStatus Subgraph::GetModelMetadata(const struct TfLiteContext* context, in GetModelMetadata()
552 TfLiteStatus Subgraph::PreviewDelegatePartitioning( in PreviewDelegatePartitioning()
[all …]
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.h30 TfLiteStatus NumElements(const TensorT& tensor, uint64_t* num_elements);
45 TfLiteStatus FillPerChannelMinMax(const float* const input,
63 TfLiteStatus SymmetricPerChannelQuantization(TensorT* tensor,
79 TfLiteStatus SymmetricQuantizeTensor(ModelT* model, TensorT* tensor);
82 TfLiteStatus QuantizeTensorFloat16(ModelT* model, TensorT* tensor);
85 TfLiteStatus AddQuantizationParams(const std::vector<float>& scales,
94 TfLiteStatus GetSymmetricScalesFromMaxMin(QuantizationParametersT* quant_params,
100 TfLiteStatus AdjustWeightsForBiasScale(QuantizationParametersT* quant_params,
107 TfLiteStatus SymmetricQuantizeTensorPerChannel(ModelT* model, TensorT* tensor,
112 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 QuantizeModel(flatbuffers::FlatBufferBuilder* builder,
83 TfLiteStatus QuantizeModelAllOperators(
92 TfLiteStatus QuantizeModelAllOperators(
104 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;
76 TfLiteStatus Commit();
90 TfLiteStatus CalculateAllocations(int first_node, int last_node);
94 TfLiteStatus ResolveTensorAllocation(int tensor_index);
98 TfLiteStatus CalculateAllocationOfInternalTensors(int node_index);
[all …]
Dinterpreter.h124 TfLiteStatus SetInputs(std::vector<int> inputs);
129 TfLiteStatus SetOutputs(std::vector<int> outputs);
134 TfLiteStatus SetVariables(std::vector<int> variables);
140 TfLiteStatus AddNodeWithParameters(const std::vector<int>& inputs,
150 TfLiteStatus AddTensors(int tensors_to_add,
157 TfLiteStatus SetTensorParametersReadOnly(
163 inline TfLiteStatus SetTensorParametersReadOnly(
173 TfLiteStatus SetTensorParametersReadOnly(
182 TfLiteStatus SetTensorParametersReadWrite(int tensor_index, TfLiteType type,
189 inline TfLiteStatus SetTensorParametersReadWrite(
[all …]
Dinterpreter.cc82 TfLiteStatus status = (a); \
166 TfLiteStatus Interpreter::SetInputs(std::vector<int> inputs) { in SetInputs()
170 TfLiteStatus Interpreter::SetOutputs(std::vector<int> outputs) { in SetOutputs()
174 TfLiteStatus Interpreter::SetVariables(std::vector<int> variables) { in SetVariables()
178 TfLiteStatus Interpreter::AllocateTensors() { in AllocateTensors()
202 TfLiteStatus Interpreter::AddNodeWithParameters( in AddNodeWithParameters()
211 TfLiteStatus Interpreter::ResizeInputTensor(int tensor_index, in ResizeInputTensor()
216 TfLiteStatus Interpreter::ResizeInputTensorStrict( in ResizeInputTensorStrict()
221 TfLiteStatus Interpreter::Invoke() { in Invoke()
244 TfLiteStatus Interpreter::AddTensors(int tensors_to_add, in AddTensors()
[all …]
Dinterpreter_builder.h87 TfLiteStatus operator()(std::unique_ptr<Interpreter>* interpreter);
92 TfLiteStatus operator()(std::unique_ptr<Interpreter>* interpreter,
97 TfLiteStatus SetNumThreads(int num_threads);
108 TfLiteStatus BuildLocalIndexToRegistrationMapping();
109 TfLiteStatus ParseNodes(
112 TfLiteStatus ParseTensors(
116 TfLiteStatus ApplyDelegates(Interpreter* interpreter);
117 TfLiteStatus ParseQuantization(const QuantizationParameters* src_quantization,
120 TfLiteStatus ParseSparsity(const SparsityParameters* src_sparsity,
122 TfLiteStatus ParseSignatureDefs(
Dmemory_planner.h33 virtual TfLiteStatus PlanAllocations() = 0;
37 virtual TfLiteStatus ExecuteAllocations(int first_node, int last_node) = 0;
42 virtual TfLiteStatus ResetAllocations() = 0;
45 virtual TfLiteStatus ResetAllocationsAfter(int node) = 0;
57 virtual TfLiteStatus ReleaseNonPersistentMemory() = 0;
60 virtual TfLiteStatus AcquireNonPersistentMemory() = 0;
Dsimple_planner.h86 TfLiteStatus ResetAllocations() override;
87 TfLiteStatus ResetAllocationsAfter(int node) override;
88 TfLiteStatus PlanAllocations() override;
89 TfLiteStatus ExecuteAllocations(int first_node, int last_node) override;
90 TfLiteStatus ReleaseNonPersistentMemory() override;
91 TfLiteStatus AcquireNonPersistentMemory() override;
102 TfLiteStatus ResolveTensorAllocation(int tensor_index);
Dsimple_memory_arena.h76 TfLiteStatus Allocate(TfLiteContext* context, size_t alignment, size_t size,
80 TfLiteStatus Deallocate(TfLiteContext* context,
90 TfLiteStatus Commit(TfLiteContext* context);
92 TfLiteStatus ResolveAlloc(TfLiteContext* context,
99 TfLiteStatus ClearPlan();
104 TfLiteStatus ReleaseBuffer();
Dinterpreter_experimental.cc38 TfLiteStatus Interpreter::SetCustomAllocationForTensor( in SetCustomAllocationForTensor()
44 TfLiteStatus Interpreter::ReleaseNonPersistentMemory() { in ReleaseNonPersistentMemory()
51 TfLiteStatus Interpreter::ResetVariableTensors() { in ResetVariableTensors()
75 TfLiteStatus Interpreter::ModifyGraphWithDelegate(TfLiteDelegate* delegate) { in ModifyGraphWithDelegate()
81 TfLiteStatus Interpreter::SetBufferHandle(int tensor_index, in SetBufferHandle()
100 TfLiteStatus Interpreter::GetBufferHandle(int tensor_index, in GetBufferHandle()
138 TfLiteStatus Interpreter::ApplyOptions(InterpreterOptions* options) { in ApplyOptions()
/external/tensorflow/tensorflow/lite/c/
Dcommon.h74 TfLiteStatus (*Refresh)(struct TfLiteContext* context);
204 const TfLiteStatus s = (a); \
247 const TfLiteStatus s = (status); \
640 TfLiteStatus TfLiteTensorCopy(const TfLiteTensor* src, TfLiteTensor* dst);
703 TfLiteStatus (*GetExecutionPlan)(struct TfLiteContext* context,
714 TfLiteStatus (*ResizeTensor)(struct TfLiteContext*, TfLiteTensor* tensor,
722 TfLiteStatus (*AddTensors)(struct TfLiteContext*, int tensors_to_add,
727 TfLiteStatus (*GetNodeAndRegistration)(
733 TfLiteStatus (*ReplaceNodeSubsetsWithDelegateKernels)(
772 TfLiteStatus (*AllocateBufferForEval)(struct TfLiteContext* ctx, size_t bytes,
[all …]
Dc_api.h170 TfLiteStatus (*prepare)(TfLiteOpaqueContext* context,
180 TfLiteStatus (*invoke)(TfLiteOpaqueContext* context,
267 TFL_CAPI_EXPORT extern TfLiteStatus TfLiteInterpreterResizeInputTensor(
276 TFL_CAPI_EXPORT extern TfLiteStatus TfLiteInterpreterAllocateTensors(
309 TFL_CAPI_EXPORT extern TfLiteStatus TfLiteInterpreterInvoke(
368 TFL_CAPI_EXPORT extern TfLiteStatus TfLiteTensorCopyFromBuffer(
373 TFL_CAPI_EXPORT extern TfLiteStatus TfLiteTensorCopyToBuffer(
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/
Dlibjpeg_decoder.h86 TfLiteStatus jpeg_CreateDecompress(int version, size_t struct_size) { in jpeg_CreateDecompress()
94 TfLiteStatus jpeg_stdio_src(FILE* infile) { in jpeg_stdio_src()
98 TfLiteStatus jpeg_read_header(int& read_header_result, in jpeg_read_header()
104 TfLiteStatus jpeg_start_decompress(boolean& start_decompress_result) { in jpeg_start_decompress()
108 TfLiteStatus jpeg_read_scanlines(unsigned int& read_scanlines_result, in jpeg_read_scanlines()
114 TfLiteStatus jpeg_finish_decompress(boolean& finish_decompress_result) { in jpeg_finish_decompress()
118 TfLiteStatus jpeg_destroy_decompress() { in jpeg_destroy_decompress()
140 TfLiteStatus Run(Fn f, Args... args) { in Run()
175 TfLiteStatus RunAndSetResult(Fn f, ResultType* result, Args... args) { in RunAndSetResult()
/external/tensorflow/tensorflow/lite/kernels/
Dkernel_util.h54 TfLiteStatus GetInputSafe(const TfLiteContext* context, const TfLiteNode* node,
85 TfLiteStatus GetOutputSafe(const TfLiteContext* context, const TfLiteNode* node,
121 TfLiteStatus GetTemporarySafe(const TfLiteContext* context,
145 TfLiteStatus GetIntermediatesSafe(const TfLiteContext* context,
232 TfLiteStatus PopulateConvolutionQuantizationParams(
239 TfLiteStatus PopulateConvolutionQuantizationParams(
250 TfLiteStatus GetQuantizedConvolutionMultipler(TfLiteContext* context,
257 TfLiteStatus GetQuantizedConvolutionMultipler(TfLiteContext* context,
265 TfLiteStatus CalculateActivationRangeQuantized(TfLiteContext* context,
296 TfLiteStatus GetOutputShapeFromInput(TfLiteContext* context,
[all …]
Delementwise.cc79 TfLiteStatus GenericPrepare(TfLiteContext* context, TfLiteNode* node, in GenericPrepare()
137 inline TfLiteStatus EvalImpl(TfLiteContext* context, TfLiteNode* node, in EvalImpl()
139 std::function<TfLiteStatus(T)> validate_input_func, in EvalImpl()
159 inline TfLiteStatus AbsInt16EvalImpl(TfLiteContext* context, TfLiteNode* node, in AbsInt16EvalImpl()
177 inline TfLiteStatus EvalImpl(TfLiteContext* context, TfLiteNode* node, in EvalImpl()
184 inline TfLiteStatus EvalNumeric(TfLiteContext* context, TfLiteNode* node, in EvalNumeric()
189 inline TfLiteStatus EvalLogical(TfLiteContext* context, TfLiteNode* node, in EvalLogical()
204 TfLiteStatus AbsEvalQuantized(TfLiteContext* context, TfLiteNode* node, in AbsEvalQuantized()
225 TfLiteStatus AbsEval(TfLiteContext* context, TfLiteNode* node) { in AbsEval()
244 TfLiteStatus SinEval(TfLiteContext* context, TfLiteNode* node) { in SinEval()
[all …]
Datan2_custom.cc27 TfLiteStatus EnsureSameShape(TfLiteContext* context, const TfLiteTensor* a, in EnsureSameShape()
32 return TfLiteStatus::kTfLiteOk; in EnsureSameShape()
35 TfLiteStatus Atan2Prepare(TfLiteContext* context, TfLiteNode* node) { in Atan2Prepare()
56 TfLiteStatus Atan2(const TfLiteTensor* input_y, const TfLiteTensor* input_x, in Atan2()
67 return TfLiteStatus::kTfLiteOk; in Atan2()
70 TfLiteStatus Atan2Eval(TfLiteContext* context, TfLiteNode* node) { in Atan2Eval()
87 return TfLiteStatus::kTfLiteOk; in Atan2Eval()
Datan2.cc26 TfLiteStatus EnsureSameShape( in EnsureSameShape()
33 return TfLiteStatus::kTfLiteOk; in EnsureSameShape()
36 TfLiteStatus Atan2Prepare(TfLiteContext* context, TfLiteNode* node) { in Atan2Prepare()
58 TfLiteStatus Atan2(const TfLiteTensor* input_y, in Atan2()
70 return TfLiteStatus::kTfLiteOk; in Atan2()
73 TfLiteStatus Atan2Eval(TfLiteContext* context, TfLiteNode* node) { in Atan2Eval()
92 return TfLiteStatus::kTfLiteOk; in Atan2Eval()
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_tflite_model.h50 TfLiteStatus SplitInputLayerNameAndValueFile(
81 TfLiteStatus ValidateParams() override;
83 TfLiteStatus Init() override;
84 TfLiteStatus RunImpl() override;
88 TfLiteStatus PrepareInputData() override;
89 TfLiteStatus ResetInputsAndOutputs() override;
93 virtual TfLiteStatus LoadModel();
99 virtual TfLiteStatus InitInterpreter();
Dbenchmark_model.h191 virtual TfLiteStatus Init() = 0;
192 virtual TfLiteStatus Run(int argc, char** argv);
193 virtual TfLiteStatus Run();
205 TfLiteStatus ParseFlags(int* argc, char** argv);
209 virtual TfLiteStatus ValidateParams();
211 TfLiteStatus ParseFlags(int argc, char** argv) { in ParseFlags()
221 TfLiteStatus* invoke_status);
224 virtual TfLiteStatus PrepareInputData();
226 virtual TfLiteStatus ResetInputsAndOutputs();
227 virtual TfLiteStatus RunImpl() = 0;
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dinput_generator.h39 TfLiteStatus LoadModel(const string& model_dir);
40 TfLiteStatus LoadModel(const string& model_dir, const string& signature);
41 TfLiteStatus ReadInputsFromFile(const string& filename);
42 TfLiteStatus GenerateInput(const string& distribution);
44 TfLiteStatus WriteInputsToFile(const string& filename);
/external/tensorflow/tensorflow/lite/delegates/hexagon/
Dhexagon_delegate_kernel.h48 TfLiteStatus Init(TfLiteContext* context,
52 TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) override;
55 TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) override;
68 TfLiteStatus BuildGraph(TfLiteContext* context,
76 TfLiteStatus ResizeOutputTensors(TfLiteContext* context, TfLiteNode* node);

12345678910>>...21