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

Function TEST

tensorflow/core/util/work_sharder_test.cc:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64TEST(Shard, Basic) {
65 thread::ThreadPool threads(Env::Default(), "test", 16);
66 for (auto workers : {0, 1, 2, 3, 5, 7, 10, 11, 15, 100, 1000}) {
67 for (auto total : {0, 1, 7, 10, 64, 100, 256, 1000, 9999}) {
68 for (auto cost_per_unit : {0, 1, 11, 102, 1003, 10005, 1000007}) {
69 for (auto maxp : {1, 2, 4, 8, 100}) {
70 ScopedPerThreadMaxParallelism s(maxp);
71 RunSharding(workers, total, cost_per_unit, maxp, &threads);
72 }
73 }
74 }
75 }
76}
77
78TEST(Shard, OverflowTest) {
79 thread::ThreadPool threads(Env::Default(), "test", 3);

Callers

nothing calls this directly

Calls 4

DefaultFunction · 0.85
RunShardingFunction · 0.70
ShardFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected