| 395 | } |
| 396 | |
| 397 | Status DatasetOpsTestBase::InitThreadPool(int thread_num) { |
| 398 | if (thread_num < 1) { |
| 399 | return errors::InvalidArgument( |
| 400 | "The `thread_num` argument should be positive but got: ", thread_num); |
| 401 | } |
| 402 | thread_pool_ = absl::make_unique<thread::ThreadPool>( |
| 403 | Env::Default(), ThreadOptions(), "test_thread_pool", thread_num); |
| 404 | return Status::OK(); |
| 405 | } |
| 406 | |
| 407 | Status DatasetOpsTestBase::InitFunctionLibraryRuntime( |
| 408 | const std::vector<FunctionDef>& flib, int cpu_num) { |
nothing calls this directly
no test coverage detected