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

Function TEST

tensorflow/core/kernels/incr_save_restore_ops_test.cc:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61TEST(ParallelHashMapTest, TestSplitParallelParts) {
62 doTestSplitParallelParts(4, 3, 0, {});
63 doTestSplitParallelParts(4, 3, 1, {{0, 1}});
64 doTestSplitParallelParts(4, 3, 8, {{0, 4}, {4, 8}});
65 doTestSplitParallelParts(4, 3, 12, {{0, 3}, {3, 6}, {6, 9}, {9, 12}});
66 doTestSplitParallelParts(4, 3, 13, {{0, 4}, {4, 7}, {7, 10}, {10, 13}});
67 doTestSplitParallelParts(4, 3, 15, {{0, 4}, {4, 8}, {8, 12}, {12, 15}});
68 doTestSplitParallelParts(4, 3, 16, {{0, 4}, {4, 8}, {8, 12}, {12, 16}});
69 doTestSplitParallelParts(4, 3, 17, {{0, 5}, {5, 9}, {9, 13}, {13, 17}});
70}
71
72TEST(ParallelHashMapTest, TestUpdateAndSwap) {
73 ParallelHashMap<int32> parallel_hashmap(2);

Callers

nothing calls this directly

Calls 15

doTestSplitParallelPartsFunction · 0.85
FrameAndIterClass · 0.85
UpdateGlobalVersionMethod · 0.80
UpdateIndicesMethod · 0.80
SwapIndicesMethod · 0.80
TensorShapeClass · 0.50
NewDeviceFunction · 0.50
getMethod · 0.45
UpdateMethod · 0.45
SwapMethod · 0.45
sizeMethod · 0.45
GetKeysMethod · 0.45

Tested by

no test coverage detected