tff.Computation

An abstract interface for all classes that represent computations.

Inherits From: TypedObject

transform_args A Callable used to transform the arguments to the computation.
transform_result A Callable used to transform the result of the computation.
type_signature Returns the TFF type of this object.

Methods

__call__

View source

Invokes the computation with the given arguments in the given context.

Args
*args The positional arguments.
**kwargs The keyword-based arguments.

Returns
The result of invoking the computation, the exact form of which depends on the context.