MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / RandomState

Method RandomState

dnn/test/common/random_state.h:14–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13private:
14 RandomState() : m_generator(m_seed) {}
15 std::mt19937 m_generator;
16 const static int m_seed = 42;
17 static RandomState* instance() { return &m_instance; }

Callers 5

make_data_given_descFunction · 0.80
__init__Method · 0.80
test_conv_transpose2dFunction · 0.80
gen_elemadd_dataFunction · 0.80
gen_matmul_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected