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

Function BM_SendRecv

tensorflow/core/framework/rendezvous_test.cc:437–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void BM_SendRecv(int iters) {
438 Rendezvous* rendez = NewLocalRendezvous();
439 Tensor orig = V("val");
440 Tensor val(DT_STRING, TensorShape({}));
441 bool is_dead = false;
442 Rendezvous::Args args;
443 if (iters > 0) {
444 while (iters--) {
445 TF_CHECK_OK(rendez->Send(KeyFoo(), args, orig, is_dead));
446 TF_CHECK_OK(rendez->Recv(KeyFoo(), args, &val, &is_dead));
447 }
448 CHECK_EQ(V(val), V(orig));
449 }
450 rendez->Unref();
451}
452BENCHMARK(BM_SendRecv);
453
454void BM_PingPong(int iters) {

Callers

nothing calls this directly

Calls 6

NewLocalRendezvousFunction · 0.85
VFunction · 0.70
TensorShapeClass · 0.70
SendMethod · 0.45
RecvMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected