Skip to content

Commit ee52e9a

Browse files
authored
Fix error: replace min with max
1 parent daacd1d commit ee52e9a

File tree

1 file changed

+1
-1
lines changed
  • tensorflow_datasets/text

1 file changed

+1
-1
lines changed

tensorflow_datasets/text/c4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _split_generators(self, dl_manager):
207207
file_paths["wet_files"].extend(wet_files)
208208

209209
if self.builder_config.realnewslike or self.builder_config.webtextlike:
210-
num_shards = min(1, _DEFAULT_NUM_SHARDS // 10)
210+
num_shards = max(1, _DEFAULT_NUM_SHARDS // 10)
211211
else:
212212
num_shards = _DEFAULT_NUM_SHARDS
213213

0 commit comments

Comments
 (0)