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

Function TEST

tensorflow/core/lib/core/threadpool_test.cc:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static const int kNumThreads = 30;
32
33TEST(ThreadPool, Empty) {
34 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) {
35 fprintf(stderr, "Testing with %d threads\n", num_threads);
36 ThreadPool pool(Env::Default(), "test", num_threads);
37 }
38}
39
40TEST(ThreadPool, DoWork) {
41 Context outer_context(ContextKind::kThread);

Callers

nothing calls this directly

Calls 9

DefaultFunction · 0.85
ParallelForMethod · 0.80
BlockMethod · 0.80
RunShardingFunction · 0.70
ScheduleMethod · 0.45
DecrementCountMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected