Skip to content

Commit 498ba3f

Browse files
tomvdwThe TensorFlow Datasets Authors
authored andcommitted
Pass num shards to the beam sink from the no shuffle beam writer
PiperOrigin-RevId: 813751246
1 parent 6be0ba5 commit 498ba3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_datasets/core/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def write_from_pcollection(self, examples_pcollection):
810810
self._num_shards
811811
)
812812
return serialized_examples | "Write" >> self._file_adapter.beam_sink(
813-
filename_template=self._filename_template
813+
filename_template=self._filename_template, num_shards=self._num_shards
814814
)
815815

816816
def finalize(self) -> tuple[list[int], int]:

0 commit comments

Comments
 (0)