This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
''' | |
Perf test for `tensorflow.data.Dataset.list_files()`. | |
At least on TF 1.7 all file names are loaded into memory before | |
training starts. This can be a bottleneck for slower disks, especially | |
with large datasets. |