10 #ifndef PHYSICSTOOLS_TENSORFLOW_NOTHREADPOOL_H
11 #define PHYSICSTOOLS_TENSORFLOW_NOTHREADPOOL_H
15 #include "tensorflow/core/lib/core/threadpool.h"
16 #include "tensorflow/core/lib/core/threadpool_options.h"
18 namespace tensorflow {
20 class NoThreadPool :
public tensorflow::thread::ThreadPoolInterface {
50 #endif // PHYSICSTOOLS_TENSORFLOW_NOTHREADPOOL_H
int NumThreads() const override
int GetNumScheduleCalled()
void Schedule(std::function< void()> fn) override
void ScheduleWithHint(std::function< void()> fn, int start, int end) override
int CurrentThreadId() const override
static NoThreadPool & instance()
std::atomic< int > numScheduleCalled_