# tff.types.deserialize_type

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

Deserializes 'type_proto' as a [`tff.Type`](https://www.tensorflow.org/federated/api_docs/python/tff/types/Type).

    tff.types.deserialize_type(
        type_proto: pb.Type
    ) -> https://www.tensorflow.org/federated/api_docs/python/tff/types/Type

> [!NOTE]
> **Note:** Currently only deserialization for tensor, named tuple, sequence, and function types is implemented.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `type_proto` | A `pb.Type` to deserialize. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The corresponding instance of [`tff.Type`](https://www.tensorflow.org/federated/api_docs/python/tff/types/Type). ||

<br />

<br />

<br />

<br />

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

<br />