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

Function GetUniqueId

tensorflow/compiler/xla/service/compilation_cache.cc:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29
30int64 GetUniqueId() {
31 static tensorflow::mutex mu(tensorflow::LINKER_INITIALIZED);
32 static int64 counter = 0;
33 tensorflow::mutex_lock loc(mu);
34 const int64 id = counter++;
35 return id;
36}
37
38} // namespace
39

Callers 2

TEST_FFunction · 0.85
InsertMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68