|View source on GitHub|
An abstract base class for all values in the bodies of TFF computations.
This interface is only relevant in the context of non-TensorFlow computations, such as those that represent federated orchestration logic. The bodies of such computations will contain a mixture of federated communication operators, and calls to TensorFlow computations embedded in them as subcomponents. All values that appear in those computations implement this common interface, just like all values in TensorFlow computations appear as tensors.
Outside of the bodies of composite non-TensorFlow computations, this interface
is not used. All fully constructed computations implement
type_signature: Returns the TFF type of this object (an instance of
__call__( *args, **kwargs )
For values of functional types, invokes this value on given arguments.
__getitem__( index )
For values of a named tuple type, returns the element at
For values of a named tuple type, iterates over the tuple elements.
For values of a named tuple type, returns the number of elements.