Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 556763895
  • Loading branch information
hawkinsp authored and copybara-github committed Aug 14, 2023
1 parent cdd17c5 commit c92475e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clu/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def reduce(self) -> CollectingMetric:
# Note that this is usually called from inside a `pmap()` via
# `Collection.gather_from_model_output()` so we concatenate using jnp.
return type(self)(
{name: jnp.concatenate(values) for name, values in self.values.items()})
{name: jnp.concatenate(values) for name, values in self.values.items()}) # pytype: disable=wrong-arg-types # jnp-types

def compute(self): # No return type annotation, so subclasses can override
return {k: np.concatenate(v) for k, v in self.values.items()}
Expand Down

0 comments on commit c92475e

Please sign in to comment.