Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

tff.types.type_to_py_container

Recursively convert structure.Structs to Python containers.

This is in some sense the inverse operation to structure.from_container.

value A structure of anonymous tuples of values corresponding to type_spec.
type_spec The tff.Type to which value should conform, possibly including computation_types.StructWithPythonType.

The input value, with containers converted to appropriate Python containers as specified by the type_spec.

ValueError If the conversion is not possible due to a mix of named and unnamed values.