przepływ tensorowy:: porcja:: Obsługujące opakowanie sesji

#include <serving_session.h>

ServingSession że owija danej sesji i blokuje wszystkie połączenia inne niż run ().

Streszczenie

Dziedzictwo

Dziedziczy z: tensorflow :: służąc :: ServingSession

Konstruktory i destruktory

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

Funkcje publiczne

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

Funkcje publiczne

Lista urządzeń

Status ListDevices(
  std::vector< DeviceAttributes > *response
) override

Uruchomić

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

Uruchomić

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

Uruchomić

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

Obsługujące opakowanie sesji

 ServingSessionWrapper(
  std::unique_ptr< Session > wrapped
)

~Opakowanie sesji serwowania

 ~ServingSessionWrapper() override=default