Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ GetNewPrngSeed
Method
GetNewPrngSeed
tensorflow/compiler/xla/python/local_device_state.cc:119–126 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
117
}
118
119
int LocalDeviceState::GetNewPrngSeed() {
120
absl::MutexLock lock(&mu_);
121
int x = 0;
122
do {
123
x = prng_seed_distribution_(prng_seed_generator_);
124
} while (x == 0);
125
return x;
126
}
127
128
} // namespace xla
Callers
1
ExecuteHelper
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected