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

Method write

tensorflow_datasets/core/writer.py:187–194  ·  view source on GitHub ↗

Write examples from iterator.

(
      self,
      path: epath.PathLike,
      examples: Iterable[type_utils.KeySerializedExample],
  )

Source from the content-addressed store, hash-verified

185 self.file_format = file_format
186
187 def write(
188 self,
189 path: epath.PathLike,
190 examples: Iterable[type_utils.KeySerializedExample],
191 ) -> file_adapters.ExamplePositions | None:
192 """Write examples from iterator."""
193 adapter = file_adapters.ADAPTER_FOR_FORMAT[self.file_format]
194 return adapter.write_examples(path, examples)
195
196
197class ThreadSafeIterator(Iterator):

Callers 1

Calls 1

write_examplesMethod · 0.45

Tested by 1