16 #include "tensorflow_serving/util/threadpool_executor.h"
20 namespace tensorflow {
23 ThreadPoolExecutor::ThreadPoolExecutor(Env*
const env,
const string& name,
25 : thread_pool_(env, name, num_threads) {}
27 ThreadPoolExecutor::~ThreadPoolExecutor() {}
29 void ThreadPoolExecutor::Schedule(std::function<
void()> fn) {
30 thread_pool_.Schedule(fn);