| 177 | } |
| 178 | |
| 179 | void ResetContexts() { |
| 180 | exec_ctx_.reset(new ExecContext(default_memory_pool())); |
| 181 | ctx_.reset(new KernelContext(exec_ctx_.get())); |
| 182 | } |
| 183 | |
| 184 | std::shared_ptr<Array> GetUInt8Array(int64_t size, double null_probability = 0.1) { |
| 185 | return rng_->UInt8(size, /*min=*/0, /*max=*/100, null_probability); |
nothing calls this directly
no test coverage detected