TensorFlow Serving C++ API Documentation
Public Member Functions | List of all members
tensorflow::serving::Executor Class Referenceabstract

#include <executor.h>

Inheritance diagram for tensorflow::serving::Executor:
Inheritance graph
[legend]

Public Member Functions

virtual void Schedule (std::function< void()> fn)=0
 

Detailed Description

An abstract object that can execute closures.

Implementations of executor must be thread-safe.

Definition at line 27 of file executor.h.

Member Function Documentation

◆ Schedule()

virtual void tensorflow::serving::Executor::Schedule ( std::function< void()>  fn)
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.


The documentation for this class was generated from the following file: