TensorFlow Serving C++ API Documentation
|
#include <caching_manager.h>
Public Member Functions | |
virtual ServableData< std::unique_ptr< Loader > > | CreateLoader (const ServableId &servable_id)=0 |
virtual int64_t | GetServableVersion (const string &servable_name, ServableRequest::AutoVersionPolicy policy) const =0 |
An abstraction for a loader-factory to map from a servable request to the corresponding loader.
Definition at line 83 of file caching_manager.h.
|
pure virtual |
Creates servable data consisting of the loader corresponding to the servable-id. Any errors can be reported by embedding them in the returned ServableData item.
Implemented in tensorflow::serving::PathPrefixLoaderFactory.
|
pure virtual |
Returns a version corresponding to the servable name, for the given policy.
Implemented in tensorflow::serving::PathPrefixLoaderFactory.