MCPcopy 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
214dt_float32 NormalRNG::gen_single_val() {
215 auto&& gen = RandomState::generator();
216 return m_dist(gen);
217}
218
219bool NormalRNG::has_fast_float32() {
220 return true;

Callers 6

gen_dct_constriantFunction · 0.45
gen_dct_caseFunction · 0.45
makeMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected