16 #ifndef TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_THREAD_POOL_FACTORY_H_
17 #define TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_THREAD_POOL_FACTORY_H_
19 #include "tensorflow/core/platform/threadpool.h"
20 #include "tensorflow/core/platform/threadpool_options.h"
21 #include "tensorflow_serving/util/class_registration.h"
23 namespace tensorflow {
35 std::shared_ptr<thread::ThreadPoolInterface> inter_op_thread_pool,
36 std::shared_ptr<thread::ThreadPoolInterface> intra_op_thread_pool);
39 tensorflow::thread::ThreadPoolOptions get();
42 std::shared_ptr<thread::ThreadPoolInterface> inter_op_thread_pool_;
43 std::shared_ptr<thread::ThreadPoolInterface> intra_op_thread_pool_;
56 #define REGISTER_THREAD_POOL_FACTORY(ClassCreator, ConfigProto) \
57 REGISTER_CLASS(ThreadPoolFactoryRegistry, ThreadPoolFactory, ClassCreator, \