tff.Value | TensorFlow Federated (original) (raw)
tff.Value
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 aStructType
, 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__()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.