Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tff.framework.deserialize_type

View source on GitHub

Deserializes 'type_proto' as a computation_types.Type.

tff.framework.deserialize_type(
    type_proto
)

Args:

  • type_proto: An instance of pb.Type or None.

Returns:

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

Raises:

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