Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
tensorflow :: portion:: ServingSessionWrapper
#include <serving_session.h>
Un ServingSession qui enveloppe une session donnée, et bloque tous les appels autres que Run ().
Résumé
Héritage
Hérite de:
tensorflow :: :: service ServingSession Fonctions publiques |
---|
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 |
Fonctions publiques
ListePériphériques
Status ListDevices(
std::vector< DeviceAttributes > *response
) override
Courir
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
Courir
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
Courir
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
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2020/08/12 (UTC).
[null,null,["Dernière mise à jour le 2020/08/12 (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```"]]