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

Function GetGlobalOpLists

tensorflow/lite/delegates/flex/kernel_test.cc:43–46  ·  view source on GitHub ↗

There is no easy way to pass a parameter into the TfLiteDelegate's 'prepare' function, so we keep a global map for testing purpused. To avoid collisions use: GetPrepareFunction<__LINE__>().

Source from the content-addressed store, hash-verified

41// 'prepare' function, so we keep a global map for testing purpused.
42// To avoid collisions use: GetPrepareFunction<__LINE__>().
43std::map<int, std::vector<int>>* GetGlobalOpLists() {
44 static auto* op_list = new std::map<int, std::vector<int>>;
45 return op_list;
46}
47
48class KernelTest : public testing::FlexModelTest {
49 public:

Callers 2

SetUpTestSuiteMethod · 0.85
GetPrepareFunctionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected