View source on GitHub |
A generic base class for values that appear in TFF computations.
Inherits From: TypedObject
tff.Value(
comp: tff.framework.ComputationBuildingBlock
)
If the value in this class is of StructType
or FederatedType
containing a
StructType
, the inner fields can be accessed by name
(e.g. y = my_value_impl.y
).
Args | |
---|---|
comp
|
An instance of building_blocks.ComputationBuildingBlock that contains the logic that computes this value. |
Attributes | |
---|---|
comp
|
|
type_signature
|
Returns the TFF type of this object (an instance of tff.Type ).
|
Methods
__bool__
__bool__()
__call__
__call__(
*args, **kwargs
)
Call self as a function.
__getitem__
__getitem__(
key: Union[int, str, slice]
)
__iter__
__iter__()
__len__
__len__()