Missed TensorFlow World? Check out the recap. Learn more

tf.io.read_file

TensorFlow 2.0 version

Defined in generated file: python/ops/gen_io_ops.py

Reads and outputs the entire contents of the input filename.

Aliases:

  • tf.compat.v1.io.read_file
  • tf.compat.v1.read_file
  • tf.compat.v2.io.read_file
  • tf.read_file
tf.io.read_file(
    filename,
    name=None
)

Args:

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

Returns:

A Tensor of type string.