tensorflow::serving::CachingManager::LoaderFactory

This is an abstract class.

#include <caching_manager.h>

An abstraction for a loader-factory to map from a servable request to the corresponding loader.

Summary

Inheritance

Direct Known Subclasses:tensorflow::serving::PathPrefixLoaderFactory

Constructors and Destructors

~LoaderFactory()

Public functions

CreateLoader(const ServableId & servable_id)=0
virtual ServableData< std::unique_ptr< Loader > >
Creates servable data consisting of the loader corresponding to the servable-id.
GetLatestVersion(const string & servable_name) const =0
virtual int64
Returns the latest version corresponding to the servable name.

Public functions

CreateLoader

virtual ServableData< std::unique_ptr< Loader > > CreateLoader(
  const ServableId & servable_id
)=0

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.

GetLatestVersion

virtual int64 GetLatestVersion(
  const string & servable_name
) const =0

Returns the latest version corresponding to the servable name.

~LoaderFactory

virtual  ~LoaderFactory()=default