Home
last modified time | relevance | path

Searched refs:kTfLiteOk (Results 1 – 25 of 600) sorted by relevance

12345678910>>...24

/external/tensorflow/tensorflow/lite/micro/memory_planner/
Dlinear_memory_planner_test.cc27 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
29 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
36 kTfLiteOk, planner.GetOffsetForBuffer(&micro_error_reporter, 0, &offset)); in TF_LITE_MICRO_TEST()
40 kTfLiteOk, planner.GetOffsetForBuffer(&micro_error_reporter, 1, &offset)); in TF_LITE_MICRO_TEST()
48 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
61 kTfLiteOk, planner.AddBuffer(&micro_error_reporter, 9216, 0, 29)); in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
65 kTfLiteOk, planner.AddBuffer(&micro_error_reporter, 256, 27, 28)); in TF_LITE_MICRO_TEST()
67 kTfLiteOk, planner.AddBuffer(&micro_error_reporter, 2304, 26, 27)); in TF_LITE_MICRO_TEST()
69 kTfLiteOk, planner.AddBuffer(&micro_error_reporter, 2304, 25, 26)); in TF_LITE_MICRO_TEST()
[all …]
Dgreedy_memory_planner_test.cc97 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
110 kTfLiteOk, planner.GetOffsetForBuffer(&micro_error_reporter, 0, &offset)); in TF_LITE_MICRO_TEST()
114 kTfLiteOk, planner.GetOffsetForBuffer(&micro_error_reporter, 1, &offset)); in TF_LITE_MICRO_TEST()
122 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
124 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
126 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
128 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
130 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
135 kTfLiteOk, planner.GetOffsetForBuffer(&micro_error_reporter, 0, &offset)); in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/
Dinterpreter_test.cc73 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
74 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
85 ASSERT_NE(interpreter.Invoke(), kTfLiteOk); in TEST()
86 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
87 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
93 ASSERT_EQ(interpreter.AddTensors(1, &tensor_index), kTfLiteOk); in TEST()
100 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
111 ASSERT_EQ(interpreter.AddTensors(1, &tensor_index), kTfLiteOk); in TEST()
120 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
134 ASSERT_EQ(interpreter.AddTensors(2, &base_index), kTfLiteOk); in TEST()
[all …]
Dsimple_memory_arena_test.cc52 ASSERT_EQ(arena.Allocate(&context, 32, 0, 0, 1, 2, &alloc), kTfLiteOk); in TEST()
58 ASSERT_EQ(arena.Commit(&context), kTfLiteOk); in TEST()
59 ASSERT_EQ(arena.ResolveAlloc(&context, alloc, &resolved_ptr), kTfLiteOk); in TEST()
69 ASSERT_EQ(arena.Allocate(&context, 32, 2047, 0, 0, 4, &allocs[0]), kTfLiteOk); in TEST()
70 ASSERT_EQ(arena.Allocate(&context, 32, 0, 1, 1, 2, &allocs[1]), kTfLiteOk); in TEST()
71 ASSERT_EQ(arena.Allocate(&context, 32, 1023, 2, 1, 2, &allocs[2]), kTfLiteOk); in TEST()
72 ASSERT_EQ(arena.Allocate(&context, 32, 2047, 3, 3, 4, &allocs[3]), kTfLiteOk); in TEST()
130 ASSERT_EQ(arena.ReleaseBuffer(), kTfLiteOk); in TEST()
133 ASSERT_EQ(arena.Commit(&context), kTfLiteOk); in TEST()
135 ASSERT_EQ(arena.ResolveAlloc(&context, allocs[0], &resolved_ptr), kTfLiteOk); in TEST()
[all …]
Dinterpreter_builder.cc91 return kTfLiteOk; in Copy()
99 TfLiteStatus status = kTfLiteOk; in ParseSparseIndexVector()
115 if (status != kTfLiteOk) return status; in ParseSparseIndexVector()
210 TfLiteStatus status = kTfLiteOk; in BuildLocalIndexToRegistrationMapping()
230 if (status != kTfLiteOk) { in BuildLocalIndexToRegistrationMapping()
245 status = kTfLiteOk; in BuildLocalIndexToRegistrationMapping()
293 TfLiteStatus status = kTfLiteOk; in ParseNodes()
362 return kTfLiteOk; in ParseQuantization()
419 return kTfLiteOk; in ParseQuantization()
425 return kTfLiteOk; in ParseSparsity()
[all …]
Dmodel_test.cc60 TfLiteStatus dummy_resize(TfLiteContext*, TfLiteNode*) { return kTfLiteOk; } in dummy_resize()
61 TfLiteStatus dummy_invoke(TfLiteContext*, TfLiteNode*) { return kTfLiteOk; } in dummy_invoke()
136 kTfLiteOk); in TEST()
145 ASSERT_NE(InterpreterBuilder(*model, TrivialResolver())(nullptr), kTfLiteOk); in TEST()
155 ASSERT_NE(InterpreterBuilder(*m, TrivialResolver())(&interpreter), kTfLiteOk); in TEST()
163 ASSERT_EQ(InterpreterBuilder(*m, TrivialResolver())(&interpreter), kTfLiteOk); in TEST()
173 ASSERT_EQ(InterpreterBuilder(*m, TrivialResolver())(&interpreter), kTfLiteOk); in TEST()
187 kTfLiteOk); in TEST()
200 kTfLiteOk); in TEST()
283 kTfLiteOk); in TEST()
[all …]
Darena_planner.cc66 return kTfLiteOk; in ResetAllocations()
81 return kTfLiteOk; in ResetAllocationsAfter()
97 return kTfLiteOk; in PlanAllocations()
101 return kTfLiteOk; in PlanAllocations()
108 return kTfLiteOk; in PlanAllocations()
112 return kTfLiteOk; in PlanAllocations()
187 return kTfLiteOk; in PlanAllocations()
223 return kTfLiteOk; in ExecuteAllocations()
236 return kTfLiteOk; in ReleaseNonPersistentMemory()
249 return kTfLiteOk; in AcquireNonPersistentMemory()
[all …]
Dsimple_memory_arena.cc52 return kTfLiteOk; in Allocate()
91 return kTfLiteOk; in Allocate()
97 return kTfLiteOk; in Deallocate()
111 return kTfLiteOk; in Deallocate()
138 return underlying_buffer_ != nullptr ? kTfLiteOk : kTfLiteError; in Commit()
153 return kTfLiteOk; in ResolveAlloc()
160 return kTfLiteOk; in ClearPlan()
168 return kTfLiteOk; in ReleaseBuffer()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_test.cc194 EXPECT_EQ(interpreter_.AddTensors(5), kTfLiteOk); in InterpreterFp16()
195 EXPECT_EQ(interpreter_.SetInputs({0, 1}), kTfLiteOk); in InterpreterFp16()
196 EXPECT_EQ(interpreter_.SetOutputs({4}), kTfLiteOk); in InterpreterFp16()
205 kTfLiteOk); in InterpreterFp16()
214 kTfLiteOk); in InterpreterFp16()
233 kTfLiteOk); in InterpreterFp16()
243 kTfLiteOk); in InterpreterFp16()
247 kTfLiteOk); in InterpreterFp16()
260 kTfLiteOk); in InterpreterFp16()
264 kTfLiteOk); in InterpreterFp16()
[all …]
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions.cc101 return kTfLiteOk; in FlatBufferIntVectorToArray()
488 return kTfLiteOk; in ParseOpDataTfLite()
502 return kTfLiteOk; in ParseOpDataTfLite()
518 return kTfLiteOk; in ParseOpDataTfLite()
530 return kTfLiteOk; in ParseOpDataTfLite()
541 return kTfLiteOk; in ParseOpDataTfLite()
546 return kTfLiteOk; in ParseOpDataTfLite()
559 return kTfLiteOk; in ParseOpDataTfLite()
590 return kTfLiteOk; in ParseOpDataTfLite()
607 return kTfLiteOk; in ParseOpDataTfLite()
[all …]
Dop_resolver_test.cc35 return kTfLiteOk; in MockPrepare()
39 return kTfLiteOk; in MockInvoke()
91 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
92 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
100 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
101 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
121 EXPECT_EQ(kTfLiteOk, GetRegistrationFromOpCode(conv_code, *resolver, reporter, in TEST()
125 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
126 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
164 EXPECT_EQ(kTfLiteOk, GetRegistrationFromOpCode(conv_code, *resolver, reporter, in TEST()
[all …]
/external/tensorflow/tensorflow/lite/delegates/
Ddelegate_test.cc108 kTfLiteOk); in TEST_F()
120 ASSERT_EQ(RemoveAllDelegates(), kTfLiteOk); in TEST_F()
127 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
150 kTfLiteOk); in TEST_F()
182 kTfLiteOk); in TEST_F()
185 kTfLiteOk); in TEST_F()
197 EXPECT_EQ(RemoveAllDelegates(), kTfLiteOk); in TEST_F()
199 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
223 kTfLiteOk); in TEST_F()
228 kTfLiteOk); in TEST_F()
[all …]
/external/tensorflow/tensorflow/lite/c/
Dc_api_experimental_test.cc41 /*invoke=*/[](TfLiteContext*, TfLiteNode*) { return kTfLiteOk; }}; in GetDummyRegistration()
57 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
58 EXPECT_EQ(TfLiteInterpreterResetVariableTensors(interpreter), kTfLiteOk); in TEST()
59 EXPECT_EQ(TfLiteInterpreterInvoke(interpreter), kTfLiteOk); in TEST()
79 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
80 EXPECT_EQ(TfLiteInterpreterResetVariableTensors(interpreter), kTfLiteOk); in TEST()
81 EXPECT_EQ(TfLiteInterpreterInvoke(interpreter), kTfLiteOk); in TEST()
162 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
163 EXPECT_EQ(TfLiteInterpreterResetVariableTensors(interpreter), kTfLiteOk); in TEST()
164 EXPECT_EQ(TfLiteInterpreterInvoke(interpreter), kTfLiteOk); in TEST()
[all …]
Dc_api_test.cc49 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
56 kTfLiteOk); in TEST()
57 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
76 kTfLiteOk); in TEST()
78 ASSERT_EQ(TfLiteInterpreterInvoke(interpreter), kTfLiteOk); in TEST()
98 kTfLiteOk); in TEST()
118 kTfLiteOk); in TEST()
119 ASSERT_EQ(TfLiteInterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
135 kTfLiteOk); in TEST()
137 ASSERT_EQ(TfLiteInterpreterInvoke(interpreter), kTfLiteOk); in TEST()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dsubgraph_test_util.cc63 return kTfLiteOk; in Eval()
84 kTfLiteOk); in SetupTensor()
106 kTfLiteOk); in BuildAddSubgraph()
108 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildAddSubgraph()
109 ASSERT_EQ(subgraph->SetOutputs({kOutput}), kTfLiteOk); in BuildAddSubgraph()
137 kTfLiteOk); in BuildMulSubgraph()
139 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildMulSubgraph()
140 ASSERT_EQ(subgraph->SetOutputs({kOutput}), kTfLiteOk); in BuildMulSubgraph()
168 kTfLiteOk); in BuildPadSubgraph()
170 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildPadSubgraph()
[all …]
Dsubgraph_test_util_test.cc53 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TestAccumulateLoopBody()
58 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TestAccumulateLoopBody()
76 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
80 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
91 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
95 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
106 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
110 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
121 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
125 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
[all …]
Dvariable_ops_test.cc54 ASSERT_EQ(interpreter_.AddTensors(4, &first_new_tensor_index), kTfLiteOk); in ConstructGraph()
55 ASSERT_EQ(interpreter_.SetInputs({0, 1, 2}), kTfLiteOk); in ConstructGraph()
56 ASSERT_EQ(interpreter_.SetOutputs({3}), kTfLiteOk); in ConstructGraph()
77 ASSERT_EQ(interpreter_.AllocateTensors(), kTfLiteOk); in TEST_F()
84 ASSERT_EQ(interpreter_.Invoke(), kTfLiteOk); in TEST_F()
93 ASSERT_EQ(interpreter_.AllocateTensors(), kTfLiteOk); in TEST_F()
108 ASSERT_EQ(interpreter_.AllocateTensors(), kTfLiteOk); in TEST_F()
116 ASSERT_EQ(interpreter_.Invoke(), kTfLiteOk); in TEST_F()
127 ASSERT_EQ(interpreter_.AllocateTensors(), kTfLiteOk); in TEST_F()
136 ASSERT_EQ(interpreter_.Invoke(), kTfLiteOk); in TEST_F()
Dwhile_test.cc53 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
57 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
74 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
79 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
88 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
103 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
109 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
123 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
/external/tensorflow/tensorflow/lite/micro/
Dmemory_helpers_test.cc119 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
123 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
127 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
131 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
135 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
139 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
143 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
147 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
151 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
155 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, in TF_LITE_MICRO_TEST()
[all …]
Drecording_micro_allocator_test.cc57 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
58 if (status != kTfLiteOk) return 1; in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
63 if (status != kTfLiteOk) return 1; in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
100 if (status != kTfLiteOk) return 1; in TF_LITE_MICRO_TEST()
104 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
105 if (status != kTfLiteOk) return 1; in TF_LITE_MICRO_TEST()
139 TF_LITE_MICRO_EXPECT_EQ(status, kTfLiteOk); in TF_LITE_MICRO_TEST()
140 if (status != kTfLiteOk) return 1; in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator_test.cc50 EXPECT_EQ(kTfLiteOk, status); in TEST()
56 EXPECT_EQ(kTfLiteOk, status); in TEST()
60 ASSERT_EQ(kTfLiteOk, status); in TEST()
87 ASSERT_EQ(kTfLiteOk, status); in TEST()
102 EXPECT_EQ(kTfLiteOk, status); in TEST()
128 EXPECT_EQ(kTfLiteOk, status); in TEST()
134 EXPECT_EQ(kTfLiteOk, status); in TEST()
148 ASSERT_EQ(kTfLiteOk, status); in TEST()
153 EXPECT_EQ(kTfLiteOk, status); in TEST()
174 ASSERT_EQ(kTfLiteOk, status); in TEST()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/
Dmain_functions.cc79 if (micro_op_resolver.AddDepthwiseConv2D() != kTfLiteOk) { in setup()
82 if (micro_op_resolver.AddFullyConnected() != kTfLiteOk) { in setup()
85 if (micro_op_resolver.AddSoftmax() != kTfLiteOk) { in setup()
88 if (micro_op_resolver.AddReshape() != kTfLiteOk) { in setup()
99 if (allocate_status != kTfLiteOk) { in setup()
136 if (feature_status != kTfLiteOk) { in loop()
154 if (invoke_status != kTfLiteOk) { in loop()
167 if (process_status != kTfLiteOk) { in loop()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ceva/
Dmain_functions.cc103 if (micro_op_resolver.AddDepthwiseConv2D() != kTfLiteOk) { in setup_tf()
106 if (micro_op_resolver.AddFullyConnected() != kTfLiteOk) { in setup_tf()
109 if (micro_op_resolver.AddSoftmax() != kTfLiteOk) { in setup_tf()
112 if (micro_op_resolver.AddReshape() != kTfLiteOk) { in setup_tf()
122 if (allocate_status != kTfLiteOk) { in setup_tf()
164 if (feature_status != kTfLiteOk) { in detection_loop()
182 if (invoke_status != kTfLiteOk) { in detection_loop()
196 if (process_status != kTfLiteOk) { in detection_loop()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc166 return kTfLiteOk; in ValidateCustomAllocationForTensor()
378 return kTfLiteOk; in ReplaceNodeSubsetsWithDelegateKernels()
437 return kTfLiteOk; in ReplaceNodeSubsetsWithDelegateKernels()
477 return kTfLiteOk; in GetExecutionPlan()
507 return kTfLiteOk; in PreviewDelegatePartitioning()
528 return kTfLiteOk; in PreviewDelegatePartitioning()
543 return kTfLiteOk; in SetInputs()
550 return kTfLiteOk; in SetOutputs()
557 return kTfLiteOk; in SetVariables()
597 return kTfLiteOk; in CheckTensorIndices()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/arduino/
Dimage_provider.cc102 return kTfLiteOk; in InitCamera()
120 return kTfLiteOk; in PerformCapture()
147 return kTfLiteOk; in ReadData()
236 return kTfLiteOk; in DecodeAndProcessImage()
245 if (init_status != kTfLiteOk) { in GetImage()
253 if (capture_status != kTfLiteOk) { in GetImage()
259 if (read_data_status != kTfLiteOk) { in GetImage()
266 if (decode_status != kTfLiteOk) { in GetImage()
271 return kTfLiteOk; in GetImage()

12345678910>>...24