|View source on GitHub|
ExecutorFactory to construct executors which cannot understand placement.
tff.framework.UnplacedExecutorFactory( *, support_sequence_ops: bool = False, can_resolve_references: bool = True, server_device: Optional[tf.config.LogicalDevice] = None, client_devices: Optional[Sequence[tf.config.LogicalDevice]] = (), leaf_executor_fn=
This factory constructs executors which represent "local execution": work that happens at the clients, at the server, or without placements. As such, this executor manages the placement of work on local executors.
Releases any resources associated to the given cardinalities.
Note that calling this method may invalidate the state of any executors
which have previously been returned by the factory with the
create_executor should be called again if a new executor which
is safe to use is desired.
||The cardinalities of the executor whose state we wish to clear.|
create_executor( *, cardinalities: Optional[
tff.framework.CardinalitiesType] = None, placement: Optional[
tff.framework.PlacementLiteral] = None ) ->
Abstract method to construct instance of
create_executor must accept a dict mapping
ints, and return an
a dict mapping instances of