tf.io.match_filenames_once

View source on GitHub

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

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

NOTE: The order of the files returned is deterministic.

Args:

Returns:

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