Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoosh committed Oct 10, 2024
1 parent 6b9153a commit 47d80ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/engine/adaptive_bs/test_bs_search_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_find_big_enough_batch_size_bs2_not_oom_but_most_mem(self):
"""Batch size 2 doesn't make oom but use most of memory."""
mock_train_func = self.get_mock_train_func(cuda_oom_bound=2, max_runnable_bs=1)

bs_search_algo = BsSearchAlgo(mock_train_func, 128, 1000)
bs_search_algo = BsSearchAlgo(mock_train_func, 2, 1000)
assert bs_search_algo.find_big_enough_batch_size() == 2

def test_find_big_enough_batch_size_gradient_zero(self):
Expand Down

0 comments on commit 47d80ee

Please # to comment.