tff.framework.UnplacedExecutorFactory

ExecutorFactory to construct executors which cannot understand placement.

Inherits From: ExecutorFactory

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.

Methods

clean_up_executors

View source

Releases any resources held by the factory.

Note that calling this method may invalidate the state of any executors which have previously been returned by the factory; create_executor should be called again if a new executor which is safe to use is desired.

create_executor

View source

Abstract method to construct instance of executor_base.Executor.

create_executor must accept a dict mapping placements.PlacementLiterals to ints, and return an executor_base.Executor.

Args
cardinalities a dict mapping instances of placements.PlacementLiteral to ints, specifying the population size at each placement.

Returns
Instance of executor_base.Executor.