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

Function RandomSleep

tensorflow/core/framework/rendezvous_test.cc:334–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void RandomSleep() {
335 if (std::rand() % 10 == 0) {
336 Env::Default()->SleepForMicroseconds(1000);
337 }
338}
339
340TEST_F(LocalRendezvousTest, MultiSends) {
341 static const int N = 100;

Callers 1

TEST_FFunction · 0.85

Calls 2

DefaultFunction · 0.85
SleepForMicrosecondsMethod · 0.45

Tested by

no test coverage detected