Commit a7d1b2b3 authored by Bruce Fontaine's avatar Bruce Fontaine Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 291819853
parent 1af7172d
......@@ -425,6 +425,7 @@ class BaseDataConstructor(threading.Thread):
self._shuffle_with_forkpool = not stream_files
if stream_files:
self._shard_root = epoch_dir or tempfile.mkdtemp(prefix="ncf_")
if not create_data_offline:
atexit.register(tf.io.gfile.rmtree, self._shard_root)
else:
self._shard_root = None
......
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