tff.types.deserialize_type

Deserializes 'type_proto' as a tff.Type.

type_proto A pb.Type to deserialize.

The corresponding instance of tff.Type.

TypeError If the argument is of the wrong type.
NotImplementedError For type variants for which deserialization is not implemented.