codecamp

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

tf.io.gfile.stat函数

tf.io.gfile.stat(path)

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

返回给定路径的文件统计信息。

参数:

  • path:string,文件的路径

返回:

FileStatistics结构,包含有关路径的信息

可能引发的异常:

  • errors.OpError:如果操作失败。
TensorFlow函数教程:tf.io.gfile.rmtree
TensorFlow函数教程:tf.io.gfile.walk
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定