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

Function GetRandomNum

serving/processor/serving/model_session.cc:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24constexpr int _60_Seconds = 60;
25
26int GetRandomNum() {
27 std::random_device device("/dev/urandom");
28 std::mt19937 r(device());
29 return r();
30}
31
32void ModifyPathName(std::string* path, int version) {
33 // Full ckpt: /you_path/model.ckpt-num

Callers 1

LockOrWaitFunction · 0.85

Calls 1

deviceFunction · 0.50

Tested by

no test coverage detected