Skip to content

Commit

Permalink
weird rebase behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailKardash committed Mar 28, 2024
1 parent bf8d210 commit dd6a59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harness/determined/pytorch/_pytorch_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def _from_values(
def should_stop(self, step_num: int) -> bool:
if isinstance(self.value, int):
return self._divides(step_num)
if isinstance(self.value, col_abc.Container):
return step_num in self.value
assert isinstance(self.value, col_abc.Container)
return step_num in self.value

def _divides(self, steps: int) -> bool:
assert isinstance(steps, int) and isinstance(
Expand Down

0 comments on commit dd6a59c

Please sign in to comment.