# tff.federated_value

<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) |

Returns a federated value at `placement`, with `value` as the constituent.

    tff.federated_value(
        value, placement
    )

Deprecation warning: Using [`tff.federated_value`](https://www.tensorflow.org/federated/api_docs/python/tff/federated_value) with arguments other than
simple Python constants is deprecated. When placing the result of a
[`tff.tensorflow.computation`](https://www.tensorflow.org/federated/api_docs/python/tff/tensorflow/computation), prefer [`tff.federated_eval`](https://www.tensorflow.org/federated/api_docs/python/tff/federated_eval).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `value` | A value of a non-federated TFF type to be placed. |
| `placement` | The desired result placement (either [`tff.SERVER`](https://www.tensorflow.org/federated/api_docs/python/tff#SERVER) or [`tff.CLIENTS`](https://www.tensorflow.org/federated/api_docs/python/tff#CLIENTS)). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A federated value with the given placement `placement`, and the member constituent `value` equal at all locations. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the arguments are not of the appropriate types. |

<br />