Spec-Zone.ru › TensorFlow

tf.io.gfile.listdir

Returns a list of entries contained within a directory.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.io.gfile.listdir

tf.io.gfile.listdir(
    path
)

Used in the notebooks

Used in the tutorials
  • Simple audio recognition: Recognizing keywords
  • Fine-tuning a BERT model
  • Training with Orbit
  • Text Searcher with TensorFlow Lite Model Maker

The list is in arbitrary order. It does not contain the special entries "." and "..".

Args
path string, path to a directory
Returns
[filename1, filename2, ... filenameN] as strings
Raises
errors.NotFoundError if directory doesn't exist

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/io/gfile/listdir

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API