TensorFlow Serving C++ API Documentation
|
#include <executor.h>
Public Member Functions | |
virtual void | Schedule (std::function< void()> fn)=0 |
An abstract object that can execute closures.
Implementations of executor must be thread-safe.
Definition at line 27 of file executor.h.
|
pure virtual |
Schedule the specified 'fn' for execution in this executor. Depending on the subclass implementation, this may block in some situations.
Implemented in tensorflow::serving::ThreadPoolExecutor, and tensorflow::serving::InlineExecutor.