![]() |
An abstract base class for all values in the bodies of TFF computations.
Inherits From: TypedObject
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 tff.Computation
.
Attributes | |
---|---|
type_signature
|
Returns the TFF type of this object (an instance of tff.Type ).
|
Methods
__call__
@abc.abstractmethod
__call__( *args, **kwargs )
For values of functional types, invokes this value on given arguments.
__getitem__
@abc.abstractmethod
__getitem__( index )
For values of a named tuple type, returns the element at index
.
__iter__
@abc.abstractmethod
__iter__()
For values of a named tuple type, iterates over the tuple elements.
__len__
@abc.abstractmethod
__len__()
For values of a named tuple type, returns the number of elements.