| 21 | namespace { |
| 22 | template <typename dtype> |
| 23 | void run_uniform(Handle* handle) { |
| 24 | auto opr = handle->create_operator<UniformRNG>(); |
| 25 | opr->param().dtype = DTypeTrait<dtype>::enumv; |
| 26 | Tensor<typename DTypeTrait<dtype>::ctype> t(handle, {TensorShape{200000}, dtype()}); |
| 27 | opr->exec(t.tensornd(), {}); |
| 28 | assert_uniform_correct(t.ptr(), t.layout().total_nr_elems()); |
| 29 | } |
| 30 | |
| 31 | template <typename dtype> |
| 32 | void run_gaussian(Handle* handle) { |
nothing calls this directly
no test coverage detected