W3cubDocs

/TensorFlow Python

tf.read_file(filename, name=None)

tf.read_file(filename, name=None)

See the guide: Inputs and Readers > Dealing with the filesystem

Reads and outputs the entire contents of the input filename.

Args:

  • filename: A Tensor of type string.
  • name: A name for the operation (optional).

Returns:

A Tensor of type string.

Defined in tensorflow/python/ops/gen_io_ops.py.

© 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/python/tf/read_file