tf.train.match_filenames_once

tf.train.match_filenames_once(
    pattern,
    name=None
)

Defined in tensorflow/python/training/input.py.

See the guides: Inputs and Readers > Input pipeline, Reading data > QueueRunner

Save the list of files matching pattern, so it is only computed once.

NOTE: The order of the files returned can be non-deterministic.

Args:

  • pattern: A file pattern (glob), or 1D tensor of file patterns.
  • name: A name for the operations (optional).

Returns:

A variable that is initialized to the list of files matching the pattern(s).