Stay organized with collections
Save and categorize content based on your preferences.
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()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["# tensorflow::serving::LoaderHarness::Options Struct Reference\n\ntensorflow::serving::LoaderHarness::Options\n===========================================\n\n\n`#include \u003cloader_harness.h\u003e`\n\n[Options](/tfx/serving/api_docs/cc/struct/tensorflow/serving/loader-harness/options#structtensorflow_1_1serving_1_1_loader_harness_1_1_options) to configure a [LoaderHarness](/tfx/serving/api_docs/cc/class/tensorflow/serving/loader-harness#classtensorflow_1_1serving_1_1_loader_harness).\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Options](#structtensorflow_1_1serving_1_1_loader_harness_1_1_options_1a81042f5e2262c746264606c266b9d67e)`()` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [error_callback](#structtensorflow_1_1serving_1_1_loader_harness_1_1_options_1a5f9d2107c294a1e6b0e9865ed9d34ec4) | `std::function\u003c void(const ServableId &`[id](/tfx/serving/api_docs/cc/class/tensorflow/serving/loader-harness#classtensorflow_1_1serving_1_1_loader_harness_1a21b7b9d6345409230f163a399ffb9a18)`, const Status &error)\u003e` An (optional) function to call upon transitioning to state kError. |\n| [load_retry_interval_micros](#structtensorflow_1_1serving_1_1_loader_harness_1_1_options_1acbf10fe52eba4bee54882e25a62386e7)` = 0` | `uint64_t` The interval, in microseconds, between each servable load retry. |\n| [max_num_load_retries](#structtensorflow_1_1serving_1_1_loader_harness_1_1_options_1a4774535a566aad29ab5bc0c7b3e0dc3e)` = 0` | `uint32` Maximum number of times we retry loading a servable, after the first failure, before we give up. |\n\nPublic attributes\n-----------------\n\n### error_callback\n\n```gdscript\nstd::function\u003c void(const ServableId &id, const Status &error)\u003e tensorflow::serving::LoaderHarness::Options::error_callback\n``` \nAn (optional) function to call upon transitioning to state kError. \n\n### load_retry_interval_micros\n\n```gdscript\nuint64_t tensorflow::serving::LoaderHarness::Options::load_retry_interval_micros = 0\n``` \nThe interval, in microseconds, between each servable load retry. \n\n### max_num_load_retries\n\n```gdscript\nuint32 tensorflow::serving::LoaderHarness::Options::max_num_load_retries = 0\n``` \nMaximum number of times we retry loading a servable, after the first failure, before we give up.\n\nPublic functions\n----------------\n\n### Options\n\n```text\n tensorflow::serving::LoaderHarness::Options::Options()\n```"]]