| 47 | }; |
| 48 | |
| 49 | TEST(EigenSupport, Default) { |
| 50 | TestTfLiteContext context; |
| 51 | IncrementUsageCounter(&context); |
| 52 | ASSERT_NE(context.external_context, nullptr); |
| 53 | EXPECT_EQ(context.external_context->type, kTfLiteEigenContext); |
| 54 | |
| 55 | auto thread_pool_device = GetThreadPoolDevice(&context); |
| 56 | ASSERT_NE(thread_pool_device, nullptr); |
| 57 | EXPECT_EQ(thread_pool_device->numThreads(), 4); |
| 58 | |
| 59 | DecrementUsageCounter(&context); |
| 60 | } |
| 61 | |
| 62 | TEST(EigenSupport, SingleThreaded) { |
| 63 | TestTfLiteContext context; |
nothing calls this directly
no test coverage detected