Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
334
void RandomSleep() {
335
if (std::rand() % 10 == 0) {
336
Env::Default()->SleepForMicroseconds(1000);
337
}
338
}
339
340
TEST_F(LocalRendezvousTest, MultiSends) {
341
static const int N = 100;
Callers
1
TEST_F
Function · 0.85
Calls
2
Default
Function · 0.85
SleepForMicroseconds
Method · 0.45
Tested by
no test coverage detected