RSVP for your your local TensorFlow Everywhere event today!

tff.structure.flatten

Returns a list of values in a possibly recursively nested Struct.

struct A Struct, possibly recursively nested, or a non-Struct element that can be packed with tf.nest.flatten. If struct has non-Struct-typed fields which should be flattened further, they should not contain inner Structs, as these will not be flattened (e.g. Struct([('a', collections.OrderedDict(b=Struct([('c', 5)])))]) would not be valid).

The list of leaf values in the Struct.