tensorflow::serving::LoaderHarness::Options

#include <loader_harness.h>

Options to configure a LoaderHarness.

Summary

Constructors and Destructors

Options()

Public attributes

error_callback
std::function< void(const ServableId &id, const Status &error)>
An (optional) function to call upon transitioning to state kError.
load_retry_interval_micros = 0
uint64_t
The interval, in microseconds, between each servable load retry.
max_num_load_retries = 0
uint32
Maximum number of times we retry loading a servable, after the first failure, before we give up.

Public attributes

error_callback

std::function< void(const ServableId &id, const Status &error)> tensorflow::serving::LoaderHarness::Options::error_callback

An (optional) function to call upon transitioning to state kError.

load_retry_interval_micros

uint64_t tensorflow::serving::LoaderHarness::Options::load_retry_interval_micros = 0

The interval, in microseconds, between each servable load retry.

max_num_load_retries

uint32 tensorflow::serving::LoaderHarness::Options::max_num_load_retries = 0

Maximum number of times we retry loading a servable, after the first failure, before we give up.

Public functions

Options

 tensorflow::serving::LoaderHarness::Options::Options()