| 9 | namespace test { |
| 10 | |
| 11 | TEST_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 | |
| 19 | TEST_F(ROCM, GAUSSIAN_RNG_F32) { |
| 20 | auto opr = handle_rocm()->create_operator<GaussianRNG>(); |
nothing calls this directly
no test coverage detected