Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::serving::ServingSessionWrapper
#include <serving_session.h>
A ServingSession that wraps a given Session, and blocks all calls other than Run().
Summary
Inheritance
Inherits from:
tensorflow::serving::ServingSessionDirect Known Subclasses:
tensorflow::serving::SessionWrapperIgnoreThreadPoolOptions
Public functions
|
ListDevices(std::vector< DeviceAttributes > *response) override
|
Status
|
Run(const std::vector< std::pair< string, Tensor >> & inputs, const std::vector< string > & output_tensor_names, const std::vector< string > & target_node_names, std::vector< Tensor > *outputs) override
|
Status
|
Run(const RunOptions & run_options, const std::vector< std::pair< string, Tensor >> & inputs, const std::vector< string > & output_tensor_names, const std::vector< string > & target_node_names, std::vector< Tensor > *outputs, RunMetadata *run_metadata) override
|
Status
|
Run(const RunOptions & run_options, const std::vector< std::pair< string, Tensor >> & inputs, const std::vector< string > & output_tensor_names, const std::vector< string > & target_node_names, std::vector< Tensor > *outputs, RunMetadata *run_metadata, const thread::ThreadPoolOptions & thread_pool_options) override
|
Status
|
Public functions
ListDevices
Status ListDevices(
std::vector< DeviceAttributes > *response
) override
Run
Status Run(
const std::vector< std::pair< string, Tensor >> & inputs,
const std::vector< string > & output_tensor_names,
const std::vector< string > & target_node_names,
std::vector< Tensor > *outputs
) override
Run
Status Run(
const RunOptions & run_options,
const std::vector< std::pair< string, Tensor >> & inputs,
const std::vector< string > & output_tensor_names,
const std::vector< string > & target_node_names,
std::vector< Tensor > *outputs,
RunMetadata *run_metadata
) override
Run
Status Run(
const RunOptions & run_options,
const std::vector< std::pair< string, Tensor >> & inputs,
const std::vector< string > & output_tensor_names,
const std::vector< string > & target_node_names,
std::vector< Tensor > *outputs,
RunMetadata *run_metadata,
const thread::ThreadPoolOptions & thread_pool_options
) override
ServingSessionWrapper
ServingSessionWrapper(
std::unique_ptr< Session > wrapped
)
~ServingSessionWrapper
~ServingSessionWrapper() override=default
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::ServingSessionWrapper Class Reference\n\ntensorflow::serving::ServingSessionWrapper\n==========================================\n\n\n`#include \u003cserving_session.h\u003e`\n\nA [ServingSession](/tfx/serving/api_docs/cc/class/tensorflow/serving/serving-session#classtensorflow_1_1serving_1_1_serving_session) that wraps a given Session, and blocks all calls other than Run().\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [tensorflow::serving::ServingSession](/tfx/serving/api_docs/cc/class/tensorflow/serving/serving-session) \nDirect Known Subclasses:[tensorflow::serving::SessionWrapperIgnoreThreadPoolOptions](/tfx/serving/api_docs/cc/class/tensorflow/serving/session-wrapper-ignore-thread-pool-options)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ServingSessionWrapper](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1ad111ab802638515a20fd51cadc8a48af)`(std::unique_ptr\u003c Session \u003e wrapped)` ||\n| [~ServingSessionWrapper](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1a22bbabb25b2c221ad5166b38ee40ca38)`()` ||\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| [ListDevices](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1a33d7ad5de8156afa0563a21e25963d17)`(std::vector\u003c DeviceAttributes \u003e *response) override` | `Status` |\n| [Run](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1a09fae4571d96964ac0340e2aaf03f5de)`(const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs, const std::vector\u003c string \u003e & output_tensor_names, const std::vector\u003c string \u003e & target_node_names, std::vector\u003c Tensor \u003e *outputs) override` | `Status` |\n| [Run](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1a4197a44975180c105c6766208712bec4)`(const RunOptions & run_options, const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs, const std::vector\u003c string \u003e & output_tensor_names, const std::vector\u003c string \u003e & target_node_names, std::vector\u003c Tensor \u003e *outputs, RunMetadata *run_metadata) override` | `Status` |\n| [Run](#classtensorflow_1_1serving_1_1_serving_session_wrapper_1a357c8d5be187514b042f9f20fdfa657e)`(const RunOptions & run_options, const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs, const std::vector\u003c string \u003e & output_tensor_names, const std::vector\u003c string \u003e & target_node_names, std::vector\u003c Tensor \u003e *outputs, RunMetadata *run_metadata, const thread::ThreadPoolOptions & thread_pool_options) override` | `Status` |\n\nPublic functions\n----------------\n\n### ListDevices\n\n```scdoc\nStatus ListDevices(\n std::vector\u003c DeviceAttributes \u003e *response\n) override\n``` \n\n### Run\n\n```gdscript\nStatus Run(\n const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs,\n const std::vector\u003c string \u003e & output_tensor_names,\n const std::vector\u003c string \u003e & target_node_names,\n std::vector\u003c Tensor \u003e *outputs\n) override\n``` \n\n### Run\n\n```gdscript\nStatus Run(\n const RunOptions & run_options,\n const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs,\n const std::vector\u003c string \u003e & output_tensor_names,\n const std::vector\u003c string \u003e & target_node_names,\n std::vector\u003c Tensor \u003e *outputs,\n RunMetadata *run_metadata\n) override\n``` \n\n### Run\n\n```gdscript\nStatus Run(\n const RunOptions & run_options,\n const std::vector\u003c std::pair\u003c string, Tensor \u003e\u003e & inputs,\n const std::vector\u003c string \u003e & output_tensor_names,\n const std::vector\u003c string \u003e & target_node_names,\n std::vector\u003c Tensor \u003e *outputs,\n RunMetadata *run_metadata,\n const thread::ThreadPoolOptions & thread_pool_options\n) override\n``` \n\n### ServingSessionWrapper\n\n```scdoc\n ServingSessionWrapper(\n std::unique_ptr\u003c Session \u003e wrapped\n)\n``` \n\n### \\~ServingSessionWrapper\n\n```text\n ~ServingSessionWrapper() override=default\n```"]]