tff.program.NativeValueReference
Stay organized with collections
Save and categorize content based on your preferences.
A tff.program.MaterializableValueReference
backed by a task.
Inherits From: MaterializableValueReference
, TypedObject
tff.program.NativeValueReference(
task: asyncio.Task,
type_signature: tff.program.MaterializableTypeSignature
)
Args |
task
|
An asyncio.Task to run.
|
type_signature
|
The tff.Type of this object.
|
Methods
get_value
View source
get_value()
Returns the referenced value as a numpy scalar or array.
__eq__
View source
__eq__(
other: object
) -> bool
Return self==value.
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.NativeValueReference\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\nA [`tff.program.MaterializableValueReference`](../../tff/program/MaterializableValueReference) backed by a task.\n\nInherits From: [`MaterializableValueReference`](../../tff/program/MaterializableValueReference), [`TypedObject`](../../tff/TypedObject) \n\n tff.program.NativeValueReference(\n task: asyncio.Task,\n type_signature: ../../tff/program/MaterializableTypeSignature\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------|--------------------------------------------------------|\n| `task` | An `asyncio.Task` to run. |\n| `type_signature` | The [`tff.Type`](../../tff/types/Type) of this object. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------|--------------------------------------------------------------------|\n| `type_signature` | The [`tff.TensorType`](../../tff/types/TensorType) 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 as a numpy scalar or array.\n\n### `__eq__`\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 __eq__(\n other: object\n ) -\u003e bool\n\nReturn self==value."]]