W3cubDocs

/TensorFlow C++

tensorflow::ops::WriteFile

#include <io_ops.h>

Writes contents to the file at input filename.

Summary

Creates file if not existing.

Arguments:

  • scope: A Scope object
  • filename: scalar. The name of the file to which we write the contents.
  • contents: scalar. The content to be written to the output file.

Returns:

Constructors and Destructors
WriteFile(const ::tensorflow::Scope & scope, ::tensorflow::Input filename, ::tensorflow::Input contents)
Public attributes
operation
Public functions
operator::tensorflow::Operation() const

Public attributes

operation

Operation operation

Public functions

WriteFile

 WriteFile(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input filename,
  ::tensorflow::Input contents
)

operator::tensorflow::Operation

operator::tensorflow::Operation() const 

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/write-file.html