Watch talks from the 2019 TensorFlow Dev Summit Watch now

tff.Computation

Class Computation

Inherits From: TypedObject

Defined in core/api/computation_base.py.

An abstract interface for all classes that represent computations.

Properties

type_signature

Returns the TFF type of this object (an instance of tff.Type).

Methods

__call__

__call__(
    *args,
    **kwargs
)

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.