Skip to content

Commit 5f6f839

Browse files
committed
updating the code to remove older way of tree map
1 parent 8b48977 commit 5f6f839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algoperf/workloads/cifar/cifar_jax/workload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ def _normalize_eval_metrics(
220220
self, num_examples: int, total_metrics: Dict[str, Any]
221221
) -> Dict[str, float]:
222222
"""Normalize eval metrics."""
223-
return jax.tree_map(lambda x: x / num_examples, total_metrics)
223+
return jax.tree.map(lambda x: x / num_examples, total_metrics)

0 commit comments

Comments
 (0)