View source on GitHub |
Returns True
if the structure
has the field
.
tff.structure.has_field(
structure: tff.structure.Struct
,
field: str
) -> bool
Args | |
---|---|
structure
|
An instance of Struct .
|
field
|
A string, the field to test for. |