W3cubDocs

/TensorFlow Python

tf.matching_files

tf.matching_files(
    pattern,
    name=None
)

Defined in tensorflow/python/ops/gen_io_ops.py.

See the guide: Inputs and Readers > Dealing with the filesystem

Returns the set of files matching one or more glob patterns.

Note that this routine only supports wildcard characters in the basename portion of the pattern, not in the directory portion. Note also that the order of filenames returned can be non-deterministic.

Args:

  • pattern: A Tensor of type string. Shell wildcard pattern(s). Scalar or vector of type string.
  • name: A name for the operation (optional).

Returns:

A Tensor of type string.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/matching_files