"vscode:/vscode.git/clone" did not exist on "17ef7c7ea5c188c30e64028593ee34f1ee564bfe"
Commit 7565eec5 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 475325492
parent 8b35f33e
......@@ -17,7 +17,6 @@
import io
from typing import Optional, Sequence, Union
import riegeli
import tensorflow as tf
......@@ -75,5 +74,6 @@ def _write_riegeli(examples: Sequence[Union[tf.train.Example,
output_path: Output path for the dataset.
"""
with io.FileIO(output_path, 'wb') as fileio:
import riegeli # pylint: disable=g-import-not-at-top
with riegeli.RecordWriter(fileio) as writer:
writer.write_messages(examples)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment