Skip to content

Commit

Permalink
Update src/accelerate/data_loader.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Mueller <[email protected]>
  • Loading branch information
byi8220 and muellerzr authored Jul 15, 2024
1 parent 8f04c1e commit 45db4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def __init__(self, dataset, use_stateful_dataloader=False, batch_sampler=None, *
self.use_stateful_dataloader = use_stateful_dataloader

if use_stateful_dataloader and not is_torchdata_stateful_dataloader_available():
raise ValueError("StatefulDataLoader is not available. Please install torchdata to use it.")
raise ImportError("StatefulDataLoader is not available. Please install torchdata to use it.")
if use_stateful_dataloader:
self.base_dataloader = StatefulDataLoader(dataset, batch_sampler=batch_sampler, **kwargs)
else:
Expand Down

0 comments on commit 45db4b9

Please sign in to comment.