TensorFlow返回模式匹配文件列表

2018-10-18 17:16 更新

函数:tf.gfile.Glob

Glob(filename)

定义在:tensorflow/python/lib/io/file_io.py

返回与给定模式匹配的文件列表.

函数参数:

  • filename:字符串或者字符串类型的 iterable;glob 的模式(一个或多个).

返回:

包含与给定模式匹配的文件名的字符串列表.

可能引发的错误:

errors.OpError:如果有文件系统/目录列表错误.

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy