codecamp

TensorFlow函数:tf.gfile.IsDirectory

tf.gfile.IsDirectory函数

tf.gfile.IsDirectory(dirname)

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

返回路径是否为目录.

参数:

  • dirname:字符串,指向潜在目录的路径.

返回值:

如果路径是一个目录,则tf.gfile.IsDirectory函数返回True;否则为False.

TensorFlow返回模式匹配文件列表
TensorFlow函数:tf.gfile.ListDirectory
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定