![]() |
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.io.read_file(
filename,
name=None
)
Used in the guide:
Used in the tutorials:
- Adversarial example using FGSM
- Pix2Pix
- Neural style transfer
- Load images
- Image captioning with visual attention
Args:
filename
: ATensor
of typestring
.name
: A name for the operation (optional).
Returns:
A Tensor
of type string
.