Class that supports all TensorFlow reader implementations.
Class that supports all TensorFlow reader implementations.
Conceptually, readers convert string "work units" into records (i.e., key-value pairs). Typically the "work units" are filenames and the records are extracted from the contents of those files. We want a single record produced per step, but a work unit can correspond to many records.
Therefore we introduce some decoupling using a Queue. The queue contains the work units and the reader dequeues
from the queue when it is asked to produce a record (e.g., via its read
method) but it has already finished the
last work unit.
Contains helper functions and classes for creating IO-related ops.