Skip to content

Commit

Permalink
Modify Welford metric to return mean value.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 640835234
  • Loading branch information
alexalemi authored and Flax Authors committed Jun 6, 2024
1 parent 21231af commit e7be287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/nnx/nnx/training/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def compute(self):
standard_deviation = variance**0.5
sem = standard_deviation / (self.count**0.5)
return Statistics(
mean=self.mean,
mean=self.mean.value,
standard_error_of_mean=sem,
standard_deviation=standard_deviation,
)
Expand Down

0 comments on commit e7be287

Please sign in to comment.