/external/tensorflow/tensorflow/lite/ |
D | interpreter_test.cc | 67 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 …]
|
D | simple_memory_arena_test.cc | 52 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 …]
|
D | arena_planner.cc | 60 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 …]
|
D | model.cc | 209 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 …]
|
D | model_test.cc | 45 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 …]
|
D | simple_memory_arena.cc | 43 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()
|
D | interpreter.cc | 143 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/ |
D | subgraph_test_util.cc | 49 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 …]
|
D | subgraph_test_util_test.cc | 46 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 …]
|
D | if_test.cc | 46 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()
|
D | activations.cc | 72 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/ |
D | op_resolver_test.cc | 34 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/ |
D | c_api_test.cc | 42 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 …]
|
D | c_api_experimental_test.cc | 30 .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/ |
D | calibrator_test.cc | 49 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 …]
|
D | logging_op_resolver_test.cc | 26 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/ |
D | micro_mutable_op_resolver_test.cc | 32 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()
|
D | micro_interpreter.cc | 69 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/ |
D | input_generator_test.cc | 33 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/ |
D | subgraph.cc | 322 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/ |
D | test_util.cc | 26 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/ |
D | softmax.cc | 55 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/ |
D | recognize_commands_test.cc | 89 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()
|
D | audio_provider_mock_test.cc | 39 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/ |
D | micro_features_generator_test.cc | 34 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()
|