# tff.federated_eval

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

Evaluates a federated computation at `placement`, returning the result.

    tff.federated_eval(
        fn, placement
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `fn` | A no-arg TFF computation. |
| `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`. ||

<br />

<br />

<br />

<br />

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

<br />