TensorFlow Serving C++ API Documentation
|
#include <caching_manager.h>
Public Member Functions | |
PathPrefixLoaderFactory (const string &path_prefix, std::unique_ptr< StoragePathSourceAdapter > adapter) | |
ServableData< std::unique_ptr< Loader > > | CreateLoader (const ServableId &id) override |
int64_t | GetServableVersion (const string &servable_name, ServableRequest::AutoVersionPolicy policy) const override |
A simple LoaderFactory that looks for a servable at a path formed by concatenating a fixed path prefix with the servable's name. It assumes that a given servable only has one version, namely version 0.
Definition at line 167 of file caching_manager.h.
|
overridevirtual |
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.
Implements tensorflow::serving::CachingManager::LoaderFactory.
Definition at line 208 of file caching_manager.cc.
|
overridevirtual |
Returns a version corresponding to the servable name, for the given policy.
Implements tensorflow::serving::CachingManager::LoaderFactory.
Definition at line 220 of file caching_manager.cc.