# Module: tff.templates

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

Templates for commonly used computations.

## Classes

[`class AggregationProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/AggregationProcess): A stateful process that aggregates values.

[`class EstimationProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/EstimationProcess): A stateful process that can compute an estimate of some value.

[`class IterativeProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/IterativeProcess): A process that includes an initialization and iterated computation.

[`class MeasuredProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/MeasuredProcess): A stateful process that produces metrics.

[`class MeasuredProcessOutput`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/MeasuredProcessOutput): A structure containing the output of a [`MeasuredProcess.next`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/IterativeProcess#next) computation.

## Functions

[`chain_measured_processes(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/chain_measured_processes): Creates a composition of multiple [`tff.templates.MeasuredProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/MeasuredProcess)es.

[`concatenate_measured_processes(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/concatenate_measured_processes): Creates a concatenation of multiple [`tff.templates.MeasuredProcess`](https://www.tensorflow.org/federated/api_docs/python/tff/templates/MeasuredProcess)es.