tensorflow::serving::ServableRequest

#include <manager.h>

A query for a specific loaded servable object.

Summary

The request can either specify a specific version number, or simply opt to use the earliest or latest loaded version.

Constructors and Destructors

ServableRequest()
ServableRequest(const string & name_in, const absl::optional< int64_t > & version_in)

Public types

AutoVersionPolicy enum

Public attributes

auto_version_policy = AutoVersionPolicy::kLatest
AutoVersionPolicy
name
string
version
absl::optional< int64_t >

Public static functions

Earliest(const string & name)
FromId(const ServableId & id)
Latest(const string & name)
Specific(const string & name, const int64_t version)

Public functions

DebugString() const
string

Public types

AutoVersionPolicy

 tensorflow::serving::ServableRequest::AutoVersionPolicy

Public attributes

auto_version_policy

AutoVersionPolicy tensorflow::serving::ServableRequest::auto_version_policy = AutoVersionPolicy::kLatest

name

string tensorflow::serving::ServableRequest::name

version

absl::optional< int64_t > tensorflow::serving::ServableRequest::version

Public static functions

Earliest

ServableRequest tensorflow::serving::ServableRequest::Earliest(
  const string & name
)

FromId

ServableRequest tensorflow::serving::ServableRequest::FromId(
  const ServableId & id
)

Latest

ServableRequest tensorflow::serving::ServableRequest::Latest(
  const string & name
)

Specific

ServableRequest tensorflow::serving::ServableRequest::Specific(
  const string & name,
  const int64_t version
)

Public functions

DebugString

string tensorflow::serving::ServableRequest::DebugString() const 

ServableRequest

 tensorflow::serving::ServableRequest::ServableRequest()=default

ServableRequest

 tensorflow::serving::ServableRequest::ServableRequest(
  const string & name_in,
  const absl::optional< int64_t > & version_in
)