MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / InitKernelTest

Function InitKernelTest

tensorflow/lite/kernels/test_main.cc:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace {
23
24void InitKernelTest(int* argc, char** argv) {
25 bool use_nnapi = false;
26 std::vector<tflite::Flag> flags = {
27 tflite::Flag::CreateFlag("use_nnapi", &use_nnapi, "Use NNAPI"),
28 };
29 tflite::Flags::Parse(argc, const_cast<const char**>(argv), flags);
30
31 if (use_nnapi) {
32 tflite::SingleOpModel::SetForceUseNnapi(true);
33 }
34}
35
36} // namespace
37

Callers 1

mainFunction · 0.85

Calls 2

CreateFlagFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected