# tff.program.NativeValueReference

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) 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) |

A [`tff.program.MaterializableValueReference`](https://www.tensorflow.org/federated/api_docs/python/tff/program/MaterializableValueReference) backed by a task.

Inherits From: [`MaterializableValueReference`](https://www.tensorflow.org/federated/api_docs/python/tff/program/MaterializableValueReference), [`TypedObject`](https://www.tensorflow.org/federated/api_docs/python/tff/TypedObject)

    tff.program.NativeValueReference(
        task: asyncio.Task,
        type_signature: https://www.tensorflow.org/federated/api_docs/python/tff/program/MaterializableTypeSignature
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `task` | An `asyncio.Task` to run. |
| `type_signature` | The [`tff.Type`](https://www.tensorflow.org/federated/api_docs/python/tff/types/Type) of this object. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `type_signature` | The [`tff.TensorType`](https://www.tensorflow.org/federated/api_docs/python/tff/types/TensorType) of this object. |

<br />

## Methods

### `get_value`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    get_value()

Returns the referenced value as a numpy scalar or array.

### `__eq__`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    __eq__(
        other: object
    ) -> bool

Return self==value.