|View source on GitHub|
An executor for handling federated types and intrinsics.
tff.framework.FederatingExecutor( strategy_factory: Callable[['FederatingExecutor'],
At a high-level, this executor is responsible for handling federated types and federated intrinsics and delegating work to an underlying collection of target executors associated with individual placements.
The responsibility for handling federated types and federated intrinsics is
delegated to a
- which federated intrinsics are implemented
- how federated types and federated intrinsics are implemented
- how federated values are represented in the execution stack
- how work is delegated to the target executors
- which placements are implemented
The reponsibility for handling unplaced types, computations, and processing
is delegated to an
Expressed in a different way, this executor integrates a
with an execution stack, providing a way to inject the logic for handling
federated types and intrinsics into the execution stack.
A function that accepts an instance of a
Release resources associated with this Executor, if any.
If the executor has one or more target Executors, implementation of this method must close them.
create_call( *fn_args, **fn_kwargs )
create_selection( *fn_args, **fn_kwargs )
create_struct( *fn_args, **fn_kwargs )
create_value( *fn_args, **fn_kwargs )