Registration is open for TensorFlow Dev Summit 2020 Learn more

tff.framework.LambdaExecutor

View source on GitHub

Class LambdaExecutor

The lambda executor handles lambda expressions and related abstractions.

Inherits From: Executor

NOTE: This component is only available in Python 3.

This executor understands TFF computation compositional constructs, including lambdas, blocks, references, calls, tuples, and selections, and orchestrates the execution of these constructs, while delegating all the non-compositional constructs (tensorflow, intrinsics, data, or placement) to a target executor.

NOTE: Not all lambda expressions are executed by this lambda executor. If the computation contains a call to an instrinsic that takes a functional argument, that functional argument is fed in its entirety to the target executor rather than being parsed by the lambda executor (since its execution needs to happen elsewhere).

The arguments to be ingested can be either federated computations (those are natively interpreted), or whatever other form of arguments are understood by the target executor.

__init__

View source

__init__(target_executor)

Creates a lambda executor backed by a target executor.

Args:

  • target_executor: An instance of executor_base.Executor to which the lambda executor delegates all that it cannot handle by itself.

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
)