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

Function TEST_F

dnn/test/rocm/rng.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace test {
10
11TEST_F(ROCM, UNIFORM_RNG_F32) {
12 auto opr = handle_rocm()->create_operator<UniformRNG>();
13 SyncedTensor<> t(handle_rocm(), {TensorShape{200000}, dtype::Float32()});
14 opr->exec(t.tensornd_dev(), {});
15
16 assert_uniform_correct(t.ptr_mutable_host(), t.layout().total_nr_elems());
17}
18
19TEST_F(ROCM, GAUSSIAN_RNG_F32) {
20 auto opr = handle_rocm()->create_operator<GaussianRNG>();

Callers

nothing calls this directly

Calls 9

assert_uniform_correctFunction · 0.85
get_mean_varFunction · 0.85
absFunction · 0.50
execMethod · 0.45
total_nr_elemsMethod · 0.45
layoutMethod · 0.45
paramMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected