Watch talks from the 2019 TensorFlow Dev Summit Watch now

tff.sequence_sum

tff.sequence_sum(value)

Defined in core/api/intrinsics.py.

Computes a sum of elements in a sequence.

Args:

  • value: A value of a TFF type that is either a sequence, or a federated sequence.

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

Raises:

  • TypeError: If the arguments are of wrong or unsupported types.