Skip to content

Commit

Permalink
update combined test
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jul 17, 2024
1 parent f52a501 commit e621185
Showing 1 changed file with 8 additions and 82 deletions.
90 changes: 8 additions & 82 deletions tests/streaming/test_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,43 +568,6 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
"latest_worker_idx": 1,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [2, 0]},
},
{
"dataset": {
"0": {
"num_samples_yielded": 8,
"num_workers": 3,
"batch_size": 2,
"current_epoch": 1,
"input_dir_path": ANY,
"input_dir_url": ANY,
"item_loader": None,
"drop_last": False,
"seed": 42,
"world_size": 1,
"shuffle": True,
"subsampled_files": ANY,
"region_of_interest": ANY,
},
"1": {
"num_samples_yielded": 3,
"num_workers": 3,
"batch_size": 2,
"current_epoch": 1,
"input_dir_path": ANY,
"input_dir_url": ANY,
"item_loader": None,
"drop_last": False,
"seed": 42,
"world_size": 1,
"shuffle": True,
"subsampled_files": ANY,
"region_of_interest": ANY,
},
},
"current_epoch": 0,
"latest_worker_idx": 2,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [2, 1]},
},
{
"dataset": {
"0": {
Expand Down Expand Up @@ -639,8 +602,8 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
},
},
"current_epoch": 0,
"latest_worker_idx": 0,
"num_samples_yielded": {0: [4, 1], 1: [3, 1], 2: [2, 1]},
"latest_worker_idx": 2,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [3, 1]},
},
{
"dataset": {
Expand Down Expand Up @@ -676,8 +639,8 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
},
},
"current_epoch": 0,
"latest_worker_idx": 1,
"num_samples_yielded": {0: [4, 1], 1: [4, 1], 2: [2, 1]},
"latest_worker_idx": 0,
"num_samples_yielded": {0: [4, 1], 1: [3, 1], 2: [3, 1]},
},
]

Expand Down Expand Up @@ -867,43 +830,6 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
"latest_worker_idx": 1,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [2, 0]},
},
{
"dataset": {
"0": {
"num_samples_yielded": 8,
"num_workers": 3,
"batch_size": 2,
"current_epoch": 2,
"input_dir_path": ANY,
"input_dir_url": ANY,
"item_loader": None,
"drop_last": False,
"seed": 42,
"world_size": 1,
"shuffle": True,
"subsampled_files": ANY,
"region_of_interest": ANY,
},
"1": {
"num_samples_yielded": 3,
"num_workers": 3,
"batch_size": 2,
"current_epoch": 2,
"input_dir_path": ANY,
"input_dir_url": ANY,
"item_loader": None,
"drop_last": False,
"seed": 42,
"world_size": 1,
"shuffle": True,
"subsampled_files": ANY,
"region_of_interest": ANY,
},
},
"current_epoch": 1,
"latest_worker_idx": 2,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [2, 1]},
},
{
"dataset": {
"0": {
Expand Down Expand Up @@ -938,8 +864,8 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
},
},
"current_epoch": 1,
"latest_worker_idx": 0,
"num_samples_yielded": {0: [4, 1], 1: [3, 1], 2: [2, 1]},
"latest_worker_idx": 2,
"num_samples_yielded": {0: [3, 1], 1: [3, 1], 2: [3, 1]},
},
{
"dataset": {
Expand Down Expand Up @@ -975,8 +901,8 @@ def test_combined_dataset_with_dataloader_2_epochs(tmpdir):
},
},
"current_epoch": 1,
"latest_worker_idx": 1,
"num_samples_yielded": {0: [4, 1], 1: [4, 1], 2: [2, 1]},
"latest_worker_idx": 0,
"num_samples_yielded": {0: [4, 1], 1: [3, 1], 2: [3, 1]},
},
]

Expand Down

0 comments on commit e621185

Please sign in to comment.