Skip to content

Commit 533bd43

Browse files
committed
Minor fix
1 parent 61e37bd commit 533bd43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/src/trainers/compile_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def variables(self):
164164
if not self.built:
165165
return []
166166
vars = []
167-
for m in self._flat_metrics + self._flat_weighted_metrics:
167+
for m in self.metrics:
168168
if m is not None:
169169
vars.extend(m.variables)
170170
return vars

0 commit comments

Comments
 (0)