TensorFlow Serving C++ API Documentation
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
tensorflow::serving::CachingManager Class Reference

#include <caching_manager.h>

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

Classes

class  LoaderFactory
 
struct  Options
 

Public Member Functions

std::map< ServableId, std::unique_ptr< UntypedServableHandle > > GetAvailableUntypedServableHandles () const override
 
std::vector< ServableIdListAvailableServableIds () const override
 
- Public Member Functions inherited from tensorflow::serving::Manager
template<typename T >
std::map< ServableId, ServableHandle< T > > GetAvailableServableHandles () const
 
template<typename T >
Status GetServableHandle (const ServableRequest &request, ServableHandle< T > *const handle)
 

Static Public Member Functions

static Status Create (Options options, std::unique_ptr< LoaderFactory > loader_factory, std::unique_ptr< CachingManager > *caching_manager)
 

Friends

class test_util::CachingManagerTestAccess
 

Detailed Description

A manager that manages and loads servables on-demand. Upon receiving the request for a servable name and optional version, the manager checks if it already has the requested servable loaded. If not, it initiates the load operation and then serves the request.

The manager blocks on the load operation and returns the handle when the servable has been loaded, or upon error.

Definition at line 45 of file caching_manager.h.

Member Function Documentation

◆ ListAvailableServableIds()

std::vector< ServableId > tensorflow::serving::CachingManager::ListAvailableServableIds ( ) const
overridevirtual

Gets a list of all available servable ids, i.e. each of these can be retrieved using GetServableHandle.

Implements tensorflow::serving::Manager.

Definition at line 199 of file caching_manager.cc.


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