MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / SetCurrentSeed

Method SetCurrentSeed

paddle/phi/core/generator.cc:262–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void Generator::SetCurrentSeed(uint64_t seed) {
263 std::lock_guard<std::mutex> lock(mu_);
264 state().reset(seed);
265}
266
267std::shared_ptr<std::mt19937_64> Generator::GetCPUEngine() {
268 return cpu_engine();

Callers 6

RandpermKernelFunction · 0.80
PD_DeviceContextSetSeedFunction · 0.80
set_current_seedMethod · 0.80
set_current_seedMethod · 0.80
BindGeneratorFunction · 0.80
TestFusedAdamBaseFunction · 0.80

Calls 1

resetMethod · 0.45

Tested by 1

TestFusedAdamBaseFunction · 0.64