Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyaR committed Jun 2, 2022
1 parent 849ccbf commit 7a3db8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ludwig/data/dataset/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def pipeline(
if not enable_windowing:
pipe = self.ds.repeat()
else:
if window_size_bytes is None:
raise ValueError("window_size_bytes must not be None when enable_windowing is True.")
pipe = self.ds.window(bytes_per_window=window_size_bytes).repeat()
if shuffle:
pipe = pipe.random_shuffle_each_window()
Expand Down

0 comments on commit 7a3db8c

Please sign in to comment.