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

Constructeurs et destructeurs

ServingSessionWrapper (std::unique_ptr< Session > wrapped)
~ServingSessionWrapper ()

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