Skip to content

Commit

Permalink
checker
Browse files Browse the repository at this point in the history
  • Loading branch information
KuuCi committed May 9, 2024
1 parent b97e085 commit 5ff52f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_interval_scheduler(
interval_event = Event.EPOCH_CHECKPOINT if checkpoint_events else Event.EPOCH_END
elif time_interval.unit == TimeUnit.ITERATION:
interval_event = Event.ITERATION_CHECKPOINT if checkpoint_events else Event.ITERATION_END
elif time_interval.unit in {TimeUnit.BATCH, TimeUnit.TOKEN, TimeUnit.SAMPLE, TimeUnit.DURATION}:
elif time_interval.unit in {TimeUnit.BATCH, TimeUnit.TOKEN, TimeUnit.SAMPLE, TimeUnit.DURATION, TimeUnit.SECOND}:
interval_event = Event.BATCH_CHECKPOINT if checkpoint_events else Event.BATCH_END
else:
raise NotImplementedError(
Expand Down

0 comments on commit 5ff52f6

Please sign in to comment.