Skip to content

Commit

Permalink
Automated Code Change: Suppress pytype errors
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700257299
  • Loading branch information
lingvo-bot authored and copybara-github committed Nov 26, 2024
1 parent 8c4ab9b commit ccfe1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingvo/base_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _ExportMetrics(self, **kwargs):
pass

def _ShouldEarlyStop(self, sess: Optional[tf.Session] = None) -> bool:
return self._early_stop and self._early_stop.Stop(sess)
return self._early_stop and self._early_stop.Stop(sess) # pytype: disable=bad-return-type

def _ShouldStop(self, sess=None, step=None, check_early_stop=True) -> bool:
"""Check if the runner should stop.
Expand Down

0 comments on commit ccfe1e4

Please sign in to comment.