tff.structure.to_odict

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

Returns struct as an OrderedDict, if possible.

struct An Struct.
recursive Whether to convert nested Structs recursively.

ValueError If the Struct contains unnamed elements.