Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
byi8220 committed Sep 4, 2024
1 parent ee681ed commit 47557b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/accelerate/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,6 @@ def __iter__(self):
self.end()

def __len__(self):
print("len called")
return len(self.base_dataloader) - self.skip_batches

def __reduce__(self):
Expand Down
1 change: 0 additions & 1 deletion tests/test_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ def test_can_pickle_dataloader(self, dispatch_batches):

# Test skip dataloader works as expected as well
loaded_skip_dl = model_loaded._dataloaders[1]
print(model_loaded._dataloaders)
assert isinstance(loaded_skip_dl, DataLoader)
if dispatch_batches:
assert isinstance(loaded_dl, DataLoaderDispatcher)
Expand Down

0 comments on commit 47557b7

Please sign in to comment.