Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Apr 26, 2024
1 parent 61e37bd commit 533bd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/src/trainers/compile_utils.py
Expand Up @@ -164,7 +164,7 @@ def variables(self):
if not self.built:
return []
vars = []
for m in self._flat_metrics + self._flat_weighted_metrics:
for m in self.metrics:
if m is not None:
vars.extend(m.variables)
return vars
Expand Down

0 comments on commit 533bd43

Please sign in to comment.