TensorFlow函数教程:tf.io.gfile.exists

2019-02-27 17:27 更新

tf.io.gfile.exists函数

tf.io.gfile.exists(path)

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

确定路径是否存在。

参数:

  • path:string,一个路径。

返回:

如果路径存在,则为True,无论是文件还是目录。如果路径不存在且没有文件系统错误,则返回false。

可能引发的异常:

  • errors.OpError:传播FileSystem API报告的任何错误。
以上内容是否对您有帮助:
在线笔记
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