| 415 | } // anonymous namespace |
| 416 | |
| 417 | TEST_F(CUDA, UNIFORM_RNG_F32) { |
| 418 | auto opr = handle_cuda()->create_operator<UniformRNG>(); |
| 419 | opr->param().dtype = DTypeTrait<dtype::Float32>::enumv; |
| 420 | SyncedTensor<> t(handle_cuda(), {TensorShape{200000}, dtype::Float32()}); |
| 421 | opr->exec(t.tensornd_dev(), {}); |
| 422 | |
| 423 | assert_uniform_correct(t.ptr_mutable_host(), t.layout().total_nr_elems()); |
| 424 | } |
| 425 | |
| 426 | TEST_F(CUDA, GAUSSIAN_RNG_F32) { |
| 427 | auto opr = handle_cuda()->create_operator<GaussianRNG>(); |
nothing calls this directly
no test coverage detected