View source on GitHub |
Returns map from names in structure
to their indices.
tff.structure.name_to_index_map(
structure: tff.structure.Struct
) -> dict[str, int]
Args | |
---|---|
structure
|
An instance of Struct .
|
Returns | |
---|---|
Mapping from names in structure to their indices.
|