Skip to content

Commit

Permalink
Updating tests for rint version
Browse files Browse the repository at this point in the history
  • Loading branch information
ancestor-mithril committed Jun 5, 2024
1 parent 019aabe commit 2ce3162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ChainedBSScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_dataloader_lengths(self):
n_epochs = 10

epoch_lengths = simulate_n_epochs(dataloader, scheduler, n_epochs)
expected_batch_sizes = [100, 110, 121, 133, 14, 16, 18, 20, 22, 24]
expected_batch_sizes = [100, 110, 121, 133, 14, 16, 17, 19, 21, 23]
expected_lengths = self.compute_epoch_lengths(expected_batch_sizes, len(self.dataset), drop_last=False)
self.assertEqual(epoch_lengths, expected_lengths)

Expand All @@ -37,7 +37,7 @@ def test_dataloader_batch_size(self):
n_epochs = 10

batch_sizes = get_batch_sizes_across_epochs(dataloader, scheduler, n_epochs)
expected_batch_sizes = [100, 110, 121, 133, 14, 16, 18, 20, 22, 24]
expected_batch_sizes = [100, 110, 121, 133, 14, 16, 17, 19, 21, 23]

self.assertEqual(batch_sizes, expected_batch_sizes)

Expand Down

0 comments on commit 2ce3162

Please sign in to comment.