# tff.framework.serialize_computation

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

Serializes 'tff.Computation' as a pb.Computation.

    tff.framework.serialize_computation(
        computation: https://www.tensorflow.org/federated/api_docs/python/tff/Computation
    ) -> pb.Computation

> [!NOTE]
> **Note:** Currently only serialization for computation_impl.ConcreteComputation is implemented.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `computation` | An instance of [`tff.Computation`](https://www.tensorflow.org/federated/api_docs/python/tff/Computation). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The corresponding instance of `pb.Computation`. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the argument is of the wrong type. |
| `NotImplementedError` | for computation variants for which serialization is not implemented. |

<br />