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

#include <caching_manager.h>

Inheritance diagram for tensorflow::serving::CachingManager::LoaderFactory:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ CreateLoader()

virtual ServableData<std::unique_ptr<Loader> > tensorflow::serving::CachingManager::LoaderFactory::CreateLoader ( const ServableId servable_id)
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.

◆ GetServableVersion()

virtual int64_t tensorflow::serving::CachingManager::LoaderFactory::GetServableVersion ( const string &  servable_name,
ServableRequest::AutoVersionPolicy  policy 
) const
pure virtual

Returns a version corresponding to the servable name, for the given policy.

Implemented in tensorflow::serving::PathPrefixLoaderFactory.


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