Home
last modified time | relevance | path

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

123456789

/external/tensorflow/tensorflow/lite/
Dinterpreter_test.cc67 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
68 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
79 ASSERT_NE(interpreter.Invoke(), kTfLiteOk); in TEST()
80 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
81 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
87 ASSERT_EQ(interpreter.AddTensors(1, &tensor_index), kTfLiteOk); in TEST()
93 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
107 ASSERT_EQ(interpreter.AddTensors(2, &base_index), kTfLiteOk); in TEST()
110 ASSERT_EQ(interpreter.AddTensors(3, &base_index), kTfLiteOk); in TEST()
112 ASSERT_EQ(interpreter.AddTensors(1), kTfLiteOk); in TEST()
[all …]
Dsimple_memory_arena_test.cc52 ASSERT_EQ(arena.Allocate(&context, 32, 0, &alloc), kTfLiteOk); in TEST()
57 ASSERT_EQ(arena.Deallocate(&context, alloc), kTfLiteOk); in TEST()
58 ASSERT_EQ(arena.Deallocate(&context, alloc), kTfLiteOk); in TEST()
62 ASSERT_EQ(arena.Commit(&context), kTfLiteOk); in TEST()
63 ASSERT_EQ(arena.ResolveAlloc(&context, alloc, &resolved_ptr), kTfLiteOk); in TEST()
73 ASSERT_EQ(arena.Allocate(&context, 32, 2047, &allocs[0]), kTfLiteOk); in TEST()
74 ASSERT_EQ(arena.Allocate(&context, 32, 0, &allocs[1]), kTfLiteOk); in TEST()
75 ASSERT_EQ(arena.Allocate(&context, 32, 1023, &allocs[2]), kTfLiteOk); in TEST()
76 ASSERT_EQ(arena.Deallocate(&context, allocs[1]), kTfLiteOk); in TEST()
77 ASSERT_EQ(arena.Deallocate(&context, allocs[2]), kTfLiteOk); in TEST()
[all …]
Darena_planner.cc60 return kTfLiteOk; in ResetAllocations()
80 return kTfLiteOk; in PlanAllocations()
85 return kTfLiteOk; in PlanAllocations()
93 return kTfLiteOk; in PlanAllocations()
97 return kTfLiteOk; in PlanAllocations()
184 return kTfLiteOk; in PlanAllocations()
204 return kTfLiteOk; in ExecuteAllocations()
210 return kTfLiteOk; in Commit()
244 return kTfLiteOk; in CalculateAllocations()
261 return kTfLiteOk; in ResolveTensorAllocation()
[all …]
Dmodel.cc209 TfLiteStatus status = kTfLiteOk; in BuildLocalIndexToRegistrationMapping()
215 if (status != kTfLiteOk) { in BuildLocalIndexToRegistrationMapping()
250 TfLiteStatus status = kTfLiteOk; in ParseNodes()
308 return kTfLiteOk; in ParseQuantization()
349 return kTfLiteOk; in ParseQuantization()
356 TfLiteStatus status = kTfLiteOk; in ParseTensors()
372 if (ParseQuantization(src_quantization, &quantization) != kTfLiteOk) { in ParseTensors()
379 kTfLiteOk) { in ParseTensors()
388 if (tensor->buffer() == 0) return kTfLiteOk; in ParseTensors()
400 return kTfLiteOk; in ParseTensors()
[all …]
Dmodel_test.cc45 TfLiteStatus dummy_resize(TfLiteContext*, TfLiteNode*) { return kTfLiteOk; } in dummy_resize()
46 TfLiteStatus dummy_invoke(TfLiteContext*, TfLiteNode*) { return kTfLiteOk; } in dummy_invoke()
83 kTfLiteOk); in TEST()
85 ASSERT_NE(InterpreterBuilder(*model, TrivialResolver())(nullptr), kTfLiteOk); in TEST()
95 ASSERT_NE(InterpreterBuilder(*m, TrivialResolver())(&interpreter), kTfLiteOk); in TEST()
103 ASSERT_EQ(InterpreterBuilder(*m, TrivialResolver())(&interpreter), kTfLiteOk); in TEST()
115 kTfLiteOk); in TEST()
128 kTfLiteOk); in TEST()
211 kTfLiteOk); in TEST()
231 kTfLiteOk); in TEST()
[all …]
Dsimple_memory_arena.cc43 return kTfLiteOk; in Allocate()
80 return kTfLiteOk; in Allocate()
86 return kTfLiteOk; in Deallocate()
101 return kTfLiteOk; in Deallocate()
128 return underlying_buffer_ != nullptr ? kTfLiteOk : kTfLiteError; in Commit()
141 return kTfLiteOk; in ResolveAlloc()
148 return kTfLiteOk; in Clear()
Dinterpreter.cc143 return kTfLiteOk; in Invoke()
180 allocation) != kTfLiteOk) { in SetTensorParametersReadOnly()
184 return kTfLiteOk; in SetTensorParametersReadOnly()
193 is_variable) != kTfLiteOk) { in SetTensorParametersReadWrite()
197 return kTfLiteOk; in SetTensorParametersReadWrite()
238 return kTfLiteOk; in ModifyGraphWithDelegate()
258 return kTfLiteOk; in SetBufferHandle()
271 return kTfLiteOk; in GetBufferHandle()
/external/tensorflow/tensorflow/lite/kernels/
Dsubgraph_test_util.cc49 kTfLiteOk); in SetupTensor()
71 kTfLiteOk); in BuildAddSubgraph()
73 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildAddSubgraph()
74 ASSERT_EQ(subgraph->SetOutputs({kOutput}), kTfLiteOk); in BuildAddSubgraph()
101 kTfLiteOk); in BuildMulSubgraph()
103 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildMulSubgraph()
104 ASSERT_EQ(subgraph->SetOutputs({kOutput}), kTfLiteOk); in BuildMulSubgraph()
131 kTfLiteOk); in BuildPadSubgraph()
133 ASSERT_EQ(subgraph->SetInputs({kInput1, kInput2}), kTfLiteOk); in BuildPadSubgraph()
134 ASSERT_EQ(subgraph->SetOutputs({kOutput}), kTfLiteOk); in BuildPadSubgraph()
[all …]
Dsubgraph_test_util_test.cc46 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TestAccumelateLoopBody()
51 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TestAccumelateLoopBody()
69 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
73 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
84 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
88 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
99 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
103 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
114 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in TEST_F()
120 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
[all …]
Dif_test.cc46 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in SetUp()
55 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
62 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
80 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in SetUp()
89 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
99 ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); in TEST_F()
Dactivations.cc72 return kTfLiteOk; in CheckOutputQuantParams()
328 return kTfLiteOk; in PreluPrepare()
341 return kTfLiteOk; in ReluEval()
362 return kTfLiteOk; in Relu1Eval()
399 return kTfLiteOk; in Relu6Eval()
403 return kTfLiteOk; in Relu6Eval()
406 return kTfLiteOk; in Relu6Eval()
432 return kTfLiteOk; in TanhEval()
446 return kTfLiteOk; in TanhEval()
463 return kTfLiteOk; in TanhEval()
[all …]
/external/tensorflow/tensorflow/lite/core/api/
Dop_resolver_test.cc34 return kTfLiteOk; in MockPrepare()
38 return kTfLiteOk; in MockInvoke()
90 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
91 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
99 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
100 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
120 EXPECT_EQ(kTfLiteOk, GetRegistrationFromOpCode(conv_code, *resolver, reporter, in TEST()
124 EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TEST()
125 EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TEST()
163 EXPECT_EQ(kTfLiteOk, GetRegistrationFromOpCode(conv_code, *resolver, reporter, in TEST()
[all …]
/external/tensorflow/tensorflow/lite/experimental/c/
Dc_api_test.cc42 ASSERT_EQ(TFL_InterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
49 kTfLiteOk); in TEST()
50 ASSERT_EQ(TFL_InterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
69 kTfLiteOk); in TEST()
71 ASSERT_EQ(TFL_InterpreterInvoke(interpreter), kTfLiteOk); in TEST()
91 kTfLiteOk); in TEST()
111 kTfLiteOk); in TEST()
112 ASSERT_EQ(TFL_InterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
128 kTfLiteOk); in TEST()
130 ASSERT_EQ(TFL_InterpreterInvoke(interpreter), kTfLiteOk); in TEST()
[all …]
Dc_api_experimental_test.cc30 .invoke = [](TfLiteContext*, TfLiteNode*) { return kTfLiteOk; }, in GetDummyRegistration()
46 ASSERT_EQ(TFL_InterpreterAllocateTensors(interpreter), kTfLiteOk); in TEST()
47 EXPECT_EQ(TFL_InterpreterResetVariableTensors(interpreter), kTfLiteOk); in TEST()
48 EXPECT_EQ(TFL_InterpreterInvoke(interpreter), kTfLiteOk); in TEST()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator_test.cc49 EXPECT_EQ(kTfLiteOk, status); in TEST()
55 EXPECT_EQ(kTfLiteOk, status); in TEST()
59 ASSERT_EQ(kTfLiteOk, status); in TEST()
86 ASSERT_EQ(kTfLiteOk, status); in TEST()
101 EXPECT_EQ(kTfLiteOk, status); in TEST()
127 EXPECT_EQ(kTfLiteOk, status); in TEST()
133 EXPECT_EQ(kTfLiteOk, status); in TEST()
147 ASSERT_EQ(kTfLiteOk, status); in TEST()
152 EXPECT_EQ(kTfLiteOk, status); in TEST()
173 ASSERT_EQ(kTfLiteOk, status); in TEST()
[all …]
Dlogging_op_resolver_test.cc26 return kTfLiteOk; in ConvPrepare()
30 return kTfLiteOk; in ConvEval()
34 return kTfLiteOk; in AddPrepare()
38 return kTfLiteOk; in AddEval()
42 return kTfLiteOk; in WrappingInvoke()
/external/tensorflow/tensorflow/lite/experimental/micro/
Dmicro_mutable_op_resolver_test.cc32 return kTfLiteOk; in MockPrepare()
36 return kTfLiteOk; in MockInvoke()
61 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
62 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
73 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->prepare(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
74 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, registration->invoke(nullptr, nullptr)); in TF_LITE_MICRO_TEST()
Dmicro_interpreter.cc69 initialization_status_(kTfLiteOk) { in MicroInterpreter()
92 if (initialization_status_ != kTfLiteOk) { in MicroInterpreter()
126 if (initialization_status_ != kTfLiteOk) { in MicroInterpreter()
141 if (initialization_status_ != kTfLiteOk) { in MicroInterpreter()
159 if (initialization_status_ != kTfLiteOk) { in Invoke()
163 TfLiteStatus status = kTfLiteOk; in Invoke()
177 if (status != kTfLiteOk) { in Invoke()
263 if (prepare_status != kTfLiteOk) { in Invoke()
273 if (invoke_status != kTfLiteOk) { in Invoke()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dinput_generator_test.cc33 kTfLiteOk); in TEST()
40 kTfLiteOk); in TEST()
51 ASSERT_EQ(input_generator.WriteInputsToFile(output_filename), kTfLiteOk); in TEST()
63 kTfLiteOk); in TEST()
73 kTfLiteOk); in TEST()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc322 return kTfLiteOk; in ReplaceNodeSubsetsWithDelegateKernels()
362 return kTfLiteOk; in GetExecutionPlan()
377 return kTfLiteOk; in SetInputs()
384 return kTfLiteOk; in SetOutputs()
391 return kTfLiteOk; in SetVariables()
424 return kTfLiteOk; in CheckTensorIndices()
465 return kTfLiteOk; in BytesRequired()
479 return kTfLiteOk; in AllocateTensors()
497 return kTfLiteOk; in AllocateTensors()
515 return kTfLiteOk; in ResetVariableTensors()
[all …]
/external/tensorflow/tensorflow/lite/delegates/flex/
Dtest_util.cc26 bool FlexModelTest::Invoke() { return interpreter_->Invoke() == kTfLiteOk; } in Invoke()
52 ASSERT_EQ(interpreter_->ResizeInputTensor(tensor_index, values), kTfLiteOk); in SetShape()
53 ASSERT_EQ(interpreter_->AllocateTensors(), kTfLiteOk); in SetShape()
84 kTfLiteOk); in AddTensors()
87 CHECK_EQ(interpreter_->SetInputs(inputs), kTfLiteOk); in AddTensors()
88 CHECK_EQ(interpreter_->SetOutputs(outputs), kTfLiteOk); in AddTensors()
109 return kTfLiteOk; in AddTfLiteMulOp()
114 kTfLiteOk); in AddTfLiteMulOp()
190 kTfLiteOk); in AddTfOp()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/
Dsoftmax.cc55 return kTfLiteOk; in CalculateSoftmaxOpData()
67 return kTfLiteOk; in SoftmaxPrepare()
162 return kTfLiteOk; in SoftmaxEval()
166 return kTfLiteOk; in SoftmaxEval()
170 return kTfLiteOk; in SoftmaxEval()
180 return kTfLiteOk; in SoftmaxEval()
184 return kTfLiteOk; in SoftmaxEval()
188 return kTfLiteOk; in SoftmaxEval()
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/
Drecognize_commands_test.cc89 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
111 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
136 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
166 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
184 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
187 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
205 kTfLiteOk, recognize_commands.ProcessLatestResults( in TF_LITE_MICRO_TEST()
Daudio_provider_mock_test.cc39 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
48 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
58 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
67 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, get_status); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/
Dmicro_features_generator_test.cc34 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST()
55 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, yes_status); in TF_LITE_MICRO_TEST()
72 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, InitializeMicroFeatures(error_reporter)); in TF_LITE_MICRO_TEST()
89 TF_LITE_MICRO_EXPECT_EQ(kTfLiteOk, no_status); in TF_LITE_MICRO_TEST()

123456789