View source on GitHub |
Writes examples
to a file at output_path
with type file_type
.
tfm.core.file_writers.write_small_dataset(
examples: Sequence[Union[tf.train.Example, tf.train.SequenceExample]],
output_path: str,
file_type: str = 'tfrecord'
) -> None
CAVEAT: This function is not recommended for writing large datasets, since it
will loop through examples
and perform write operation sequentially.