Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
262
void Generator::SetCurrentSeed(uint64_t seed) {
263
std::lock_guard<std::mutex> lock(mu_);
264
state().reset(seed);
265
}
266
267
std::shared_ptr<std::mt19937_64> Generator::GetCPUEngine() {
268
return cpu_engine();
Callers
6
RandpermKernel
Function · 0.80
PD_DeviceContextSetSeed
Function · 0.80
set_current_seed
Method · 0.80
set_current_seed
Method · 0.80
BindGenerator
Function · 0.80
TestFusedAdamBase
Function · 0.80
Calls
1
reset
Method · 0.45
Tested by
1
TestFusedAdamBase
Function · 0.64