# tff.sequence_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 of elements in a sequence.

    tff.sequence_sum(
        value
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `value` | A value of a TFF type that is either a sequence, or a federated sequence. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The sum of elements in the sequence. If the argument `value` is of a federated type, the result is also of a federated type, with the sum computed locally and independently at each location (see also a discussion on `sequence_map` and `sequence_reduce`). ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the arguments are of wrong or unsupported types. |

<br />