What ImageNet-scale datasets actually look like
For datasets too large to fit in memory and stored across many files, TFRecord is TensorFlow's native binary format. Each file holds serialized tf.train.Example protocol buffers — read sequentially fast, decoded in parallel.
interleave reads multiple TFRecord files concurrently, mixing their elements. Combined with cycle_length=AUTOTUNE and num_parallel_calls=AUTOTUNE, this saturates I/O on slow storage (HDDs, network drives) where reading any single file would be the bottleneck.
When to use TFRecord: dataset size > ~5GB, file count > 100, or storage on a network filesystem. For CIFAR-10 / MNIST sizes, TFRecord is overkill.