MCPcopy Index your code
hub / github.com/tensorflow/datasets / write_examples

Method write_examples

tensorflow_datasets/core/writer.py:314–319  ·  view source on GitHub ↗
(dummy_value: Any)

Source from the content-addressed store, hash-verified

312 """Writes a PCollection of examples to a file."""
313
314 def write_examples(dummy_value: Any) -> tuple[int, int]:
315 # The dummy value is needed to make the pipeline work with
316 # `beam.Create([None])`.
317 del dummy_value
318 num_examples = self.write(examples=example_gen(), path=path)
319 return shard_index, num_examples
320
321 return (
322 pipeline

Callers 3

writeMethod · 0.45
test_shard_lengthsFunction · 0.45
convertMethod · 0.45

Calls 1

writeMethod · 0.95

Tested by 1

test_shard_lengthsFunction · 0.36