阅读(3678) (1)

TensorFlow函数教程:tf.io.write_file

2019-02-25 17:03:19 更新

tf.io.write_file函数

别名:

  • tf.io.write_file
  • tf.write_file
tf.io.write_file(
    filename,
    contents,
    name=None
)

将内容写入输入文件名处的文件。创建文件并递归。

如果不存在则创建目录。

参数:

  • filename:string类型的Tensor。标量。我们写入内容的文件的名称。
  • contents:string类型的Tensor。标量。要写入输出文件的内容。
  • name:操作的名称(可选)。

返回:

创建的操作。