tff.Value
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
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__
View source
__bool__()
__call__
View source
__call__(
*args, **kwargs
)
Call self as a function.
__getitem__
View source
__getitem__(
key: Union[int, str, slice]
)
__iter__
View source
__iter__()
__len__
View source
__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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[]]