tff.framework.RemoteExecutor

View source on GitHub

Class RemoteExecutor

The remote executor is a local proxy for a remote executor instance.

Inherits From: Executor

NOTE: This component is only available in Python 3.

__init__

View source

__init__(
    channel,
    rpc_mode='REQUEST_REPLY',
    thread_pool_executor=None
)

Creates a remote executor.

Args:

  • channel: An instance of grpc.Channel to use for communication with the remote executor service.
  • rpc_mode: Optional mode of calling the remote executor. Must be either 'REQUEST_REPLY' or 'STREAMING' (defaults to 'REQUEST_REPLY'). This option will be removed after the request-reply interface is deprecated.
  • thread_pool_executor: Optional concurrent.futures.Executor used to wait for the reply to a streaming RPC message. Uses the default Executor if not specified.

Methods

create_call

View source

create_call(
    *args,
    **kwargs
)

create_selection

View source

create_selection(
    *args,
    **kwargs
)

create_tuple

View source

create_tuple(
    *args,
    **kwargs
)

create_value

View source

create_value(
    *args,
    **kwargs
)