# tff.federated_sum

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

Computes a sum at [`tff.SERVER`](https://www.tensorflow.org/federated/api_docs/python/tff#SERVER) of a `value` placed on the [`tff.CLIENTS`](https://www.tensorflow.org/federated/api_docs/python/tff#CLIENTS).

    tff.federated_sum(
        value
    )

To sum integer values with stronger privacy properties, consider using
[`tff.federated_secure_sum_bitwidth`](https://www.tensorflow.org/federated/api_docs/python/tff/federated_secure_sum_bitwidth).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `value` | A value of a TFF federated type placed at the [`tff.CLIENTS`](https://www.tensorflow.org/federated/api_docs/python/tff#CLIENTS). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A representation of the sum of the member constituents of `value` placed on the [`tff.SERVER`](https://www.tensorflow.org/federated/api_docs/python/tff#SERVER). ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the argument is not a federated TFF value placed at [`tff.CLIENTS`](https://www.tensorflow.org/federated/api_docs/python/tff#CLIENTS). |

<br />