Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tokens for to_next_epoch #3562

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions composer/core/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,6 @@ def to_next_batch(

def to_next_epoch(
self,
tokens: Union[int, Time] = 0,
duration: Optional[datetime.timedelta] = None,
):
"""Create a new :class:`.Timestamp`, advanced to the next epoch.
Expand Down Expand Up @@ -891,7 +890,6 @@ def to_next_epoch(
return self.copy(
epoch=self.epoch + 1,
epoch_in_iteration=self.epoch_in_iteration + 1,
token_in_iteration=self.token_in_iteration + tokens,
batch_in_epoch=0,
sample_in_epoch=0,
token_in_epoch=0,
Expand Down
Loading