tff.program.MaterializableValueReference
Stay organized with collections
Save and categorize content based on your preferences.
An abstract interface representing references to server-placed values.
Inherits From: TypedObject
Attributes |
type_signature
|
The tff.Type of this object.
|
Methods
get_value
View source
get_value()
Returns the referenced value.
The Python type of the referenced value depends on the type_signature
:
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.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.program.MaterializableValueReference\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nAn abstract interface representing references to server-placed values.\n\nInherits From: [`TypedObject`](../../tff/TypedObject)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------|--------------------------------------------------------|\n| `type_signature` | The [`tff.Type`](../../tff/types/Type) of this object. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `get_value`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n get_value()\n\nReturns the referenced value.\n\nThe Python type of the referenced value depends on the `type_signature`:\n\n| TFF Type | Python Type |\n|----------------------------------------------------|----------------------------------------------------|\n| [`tff.TensorType`](../../tff/types/TensorType) | `bool`, `int`, `float`, `complex`, `str`, `bytes`, |\n| | `np.generic`, or `np.ndarray` |\n| [`tff.SequenceType`](../../tff/types/SequenceType) | `Iterable` of any Python type corresponding to a |\n| | [`tff.TensorType`](../../tff/types/TensorType) |"]]