tff.types.is_structure_of_floats

Determines if type_spec is a structure of floats.

Note that an empty computation_types.StructType will return True, as it does not contain any non-floating types.

type_spec A computation_types.Type.

True iff type_spec is a structure of floats, otherwise False.