An instance of grpc.Channel to use for communication with the
remote executor service.
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.
Optional concurrent.futures.Executor used to wait
for the reply to a streaming RPC message. Uses the default Executor if
The batch size for requests to dispose of remote
worker values. Lower values will result in more requests to the remote
worker, but will result in values being cleaned up sooner and therefore
may result in lower memory usage on the remote worker.
A collection of ExecutorValues to create a tuple from. The
collection may be of any kind accepted by
structure.from_container, including dictionaries and lists. The
ExecutorValues in the container must have been created by calling
create_value on this executor.
An instance of ExecutorValue that represents the constructed tuple.
A coroutine that creates embedded value from value of type type_spec.
This function is used to embed a value within the executor. The argument
can be one of the plain Python types, a nested structure, a representation
of a TFF computation, etc. Once embedded, the value can be further passed
around within the executor. For functional values, embedding them prior to
invocation potentially allows the executor to amortize overhead across
An object that represents the value to embed within the executor.
An optional tff.Type of the value represented by this object,
or something convertible to it. The type can only be omitted if the
value is a instance of tff.TypedObject.
An instance of ExecutorValue that represents the embedded value.