View source on GitHub |
Determines if type_spec
is a structure of integers.
tff.types.is_structure_of_integers(
type_spec: tff.types.Type
) -> bool
Note that an empty computation_types.StructType
will return True
, as it
does not contain any non-integer types.
Args | |
---|---|
type_spec
|
A computation_types.Type .
|
Returns | |
---|---|
True iff type_spec is a structure of integers, otherwise False .
|