We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
structure
1 parent c9047eb commit 24ac2b3Copy full SHA for 24ac2b3
tensorflow_federated/python/core/backends/mapreduce/form_utils.py
@@ -613,7 +613,8 @@ def _as_function_of_some_federated_subparameters(
613
py_typecheck.check_type(index, str)
614
if not structure.has_field(selected_type, index):
615
raise tree_transformations.ParameterSelectionError(path, bb)
616
- int_path.append(structure.name_to_index_map(selected_type)[index])
+ names = [n for n, _ in selected_type.items()]
617
+ int_path.append(names.index(index))
618
selected_type = selected_type[index]
619
if not isinstance(selected_type, federated_language.FederatedType):
620
raise _NonFederatedSelectionError(
0 commit comments