TensorFlow Serving C++ API Documentation
|
Public Types | |
using | Creator = std::function< Status(const DataType &, std::unique_ptr< ServableType > *)> |
using | ResourceEstimator = std::function< Status(const DataType &, ResourceAllocation *)> |
![]() | |
using | AspiredVersionsCallback = std::function< void(const StringPiece servable_name, std::vector< ServableData< OutputType > > versions)> |
Static Public Member Functions | |
static ResourceEstimator | EstimateNoResources () |
Protected Member Functions | |
SimpleLoaderSourceAdapter (Creator creator, ResourceEstimator resource_estimator) | |
Status | Convert (const DataType &data, std::unique_ptr< Loader > *loader) final |
![]() | |
void | Detach () |
Additional Inherited Members | |
![]() | |
void | SetAspiredVersions (const StringPiece servable_name, std::vector< ServableData< InputType >> versions) final |
void | SetAspiredVersionsCallback (typename Source< OutputType >::AspiredVersionsCallback callback) final |
ServableData< OutputType > | AdaptOneVersion (ServableData< InputType > input) |
Adapts a single servable data item. (Implemented on top of Adapt().) | |
![]() | |
Source< InputType >::AspiredVersionsCallback | GetAspiredVersionsCallback () final |
![]() | |
virtual void | SetAspiredVersionsCallback (AspiredVersionsCallback callback)=0 |
Supplies an AspiredVersionsCallback to use. Can be called at most once. | |
Definition at line 184 of file simple_loader.h.