Have a question? Connect with the community at the TensorFlow Forum Visit Forum


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.