MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / InitThreadPool

Method InitThreadPool

tensorflow/core/kernels/data/dataset_test_base.cc:397–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397Status 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
407Status DatasetOpsTestBase::InitFunctionLibraryRuntime(
408 const std::vector<FunctionDef>& flib, int cpu_num) {

Callers

nothing calls this directly

Calls 3

InvalidArgumentFunction · 0.85
DefaultFunction · 0.85
ThreadOptionsClass · 0.85

Tested by

no test coverage detected