Attend the Women in ML Symposium on December 7 Register now

tff.framework.deserialize_type

Stay organized with collections Save and categorize content based on your preferences.

Deserializes 'type_proto' as a computation_types.Type.

type_proto An object that supports same interface as pb.Type (e.g. pybind backend C++ Type protocol buffer messages), or None.

The corresponding instance of computation_types.Type (or None if the argument was None).

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