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

Function MakeKey

tensorflow/core/framework/rendezvous_test.cc:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100Rendezvous::ParsedKey MakeKey(const string& name) {
101 string s = Rendezvous::CreateKey("/job:mnist/replica:1/task:2/CPU:0", 7890,
102 "/job:mnist/replica:1/task:2/device:GPU:0",
103 name, FrameAndIter(0, 0));
104 Rendezvous::ParsedKey k;
105 TF_EXPECT_OK(Rendezvous::ParseKey(s, &k));
106 return k;
107}
108
109const Rendezvous::ParsedKey& KeyFoo() {
110 static auto key = MakeKey("foo");

Callers 2

rendezvous_test.ccFile · 0.70
TEST_FFunction · 0.70

Calls 1

FrameAndIterClass · 0.85

Tested by

no test coverage detected