Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Aug 25, 2019
1 parent caceebc commit 2ccb69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __call__(self, *args, **kwargs):
raise RuntimeError(
'Metric calling only supported with TensorFlow backend.')
update_op = self.update_state(*args, **kwargs)
with K.control_dependencies([update_op]): # For TF
with K.control_dependencies(update_op): # For TF
return self.result()

def get_config(self):
Expand Down

0 comments on commit 2ccb69d

Please sign in to comment.