Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ gen_single_val
Method
gen_single_val
dnn/test/common/rng.cpp:214–217 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
212
}
213
214
dt_float32 NormalRNG::gen_single_val() {
215
auto&& gen = RandomState::generator();
216
return m_dist(gen);
217
}
218
219
bool NormalRNG::has_fast_float32() {
220
return true;
Callers
6
gen_dct_constriant
Function · 0.45
gen_dct_case
Function · 0.45
make
Method · 0.45
TEST_F
Function · 0.45
TEST_F
Function · 0.45
TEST_F
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected