<br />

<button value="stable" default="">See Stable</button> <button value="nightly">See Nightly</button>

<br />

Public API for tf._api.v2.io namespace

## Modules

[`gfile`](https://www.tensorflow.org/api_docs/python/tf/io/gfile) module: Public API for tf._api.v2.io.gfile namespace

## Classes

[`class FixedLenFeature`](https://www.tensorflow.org/api_docs/python/tf/io/FixedLenFeature): Configuration for parsing a fixed-length input feature.

[`class FixedLenSequenceFeature`](https://www.tensorflow.org/api_docs/python/tf/io/FixedLenSequenceFeature): Configuration for parsing a variable-length input feature into a `Tensor`.

[`class RaggedFeature`](https://www.tensorflow.org/api_docs/python/tf/io/RaggedFeature): Configuration for passing a RaggedTensor input feature.

[`class SparseFeature`](https://www.tensorflow.org/api_docs/python/tf/io/SparseFeature): Configuration for parsing a sparse input feature from an `Example`.

[`class TFRecordOptions`](https://www.tensorflow.org/api_docs/python/tf/io/TFRecordOptions): Options used for manipulating TFRecord files.

[`class TFRecordWriter`](https://www.tensorflow.org/api_docs/python/tf/io/TFRecordWriter): A class to write records to a TFRecords file.

[`class VarLenFeature`](https://www.tensorflow.org/api_docs/python/tf/io/VarLenFeature): Configuration for parsing a variable-length input feature.

## Functions

[`decode_and_crop_jpeg(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_and_crop_jpeg): Decode and Crop a JPEG-encoded image to a uint8 tensor.

[`decode_base64(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_base64): Decode web-safe base64-encoded strings.

[`decode_bmp(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_bmp): Decode the first frame of a BMP-encoded image to a uint8 tensor.

[`decode_compressed(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_compressed): Decompress strings.

[`decode_csv(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_csv): Convert CSV records to tensors. Each column maps to one tensor.

[`decode_gif(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_gif): Decode the frame(s) of a GIF-encoded image to a uint8 tensor.

[`decode_image(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_image): Function for `decode_bmp`, `decode_gif`, `decode_jpeg`, and `decode_png`.

[`decode_jpeg(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_jpeg): Decode a JPEG-encoded image to a uint8 tensor.

[`decode_json_example(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_json_example): Convert JSON-encoded Example records to binary protocol buffer strings.

[`decode_jxl(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_jxl): Decode a JPEG XL encoded image to a uint8 tensor.

[`decode_png(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_png): Decode a PNG-encoded image to a uint8 or uint16 tensor.

[`decode_proto(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_proto): The op extracts fields from a serialized protocol buffers message into tensors.

[`decode_raw(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_raw): Convert raw bytes from input tensor into numeric tensors.

[`decode_webp(...)`](https://www.tensorflow.org/api_docs/python/tf/io/decode_webp): Decode a WebP-encoded image to a uint8 tensor.

[`deserialize_many_sparse(...)`](https://www.tensorflow.org/api_docs/python/tf/io/deserialize_many_sparse): Deserialize and concatenate `SparseTensors` from a serialized minibatch.

[`encode_base64(...)`](https://www.tensorflow.org/api_docs/python/tf/io/encode_base64): Encode strings into web-safe base64 format.

[`encode_jpeg(...)`](https://www.tensorflow.org/api_docs/python/tf/io/encode_jpeg): JPEG-encode an image.

[`encode_png(...)`](https://www.tensorflow.org/api_docs/python/tf/io/encode_png): PNG-encode an image.

[`encode_proto(...)`](https://www.tensorflow.org/api_docs/python/tf/io/encode_proto): The op serializes protobuf messages provided in the input tensors.

[`extract_jpeg_shape(...)`](https://www.tensorflow.org/api_docs/python/tf/io/extract_jpeg_shape): Extract the shape information of a JPEG-encoded image.

[`is_jpeg(...)`](https://www.tensorflow.org/api_docs/python/tf/io/is_jpeg): Convenience function to check if the 'contents' encodes a JPEG image.

[`match_filenames_once(...)`](https://www.tensorflow.org/api_docs/python/tf/io/match_filenames_once): Save the list of files matching pattern, so it is only computed once.

[`matching_files(...)`](https://www.tensorflow.org/api_docs/python/tf/io/matching_files): Returns the set of files matching one or more glob patterns.

[`parse_example(...)`](https://www.tensorflow.org/api_docs/python/tf/io/parse_example): Parses `Example` protos into a `dict` of tensors.

[`parse_sequence_example(...)`](https://www.tensorflow.org/api_docs/python/tf/io/parse_sequence_example): Parses a batch of `SequenceExample` protos.

[`parse_single_example(...)`](https://www.tensorflow.org/api_docs/python/tf/io/parse_single_example): Parses a single `Example` proto.

[`parse_single_sequence_example(...)`](https://www.tensorflow.org/api_docs/python/tf/io/parse_single_sequence_example): Parses a single `SequenceExample` proto.

[`parse_tensor(...)`](https://www.tensorflow.org/api_docs/python/tf/io/parse_tensor): Transforms a serialized tensorflow.TensorProto proto into a Tensor.

[`read_file(...)`](https://www.tensorflow.org/api_docs/python/tf/io/read_file): Reads the contents of file.

[`serialize_many_sparse(...)`](https://www.tensorflow.org/api_docs/python/tf/io/serialize_many_sparse): Serialize `N`-minibatch `SparseTensor` into an `[N, 3]` `Tensor`.

[`serialize_sparse(...)`](https://www.tensorflow.org/api_docs/python/tf/io/serialize_sparse): Serialize a `SparseTensor` into a 3-vector (1-D `Tensor`) object.

[`serialize_tensor(...)`](https://www.tensorflow.org/api_docs/python/tf/io/serialize_tensor): Transforms a Tensor into a serialized TensorProto proto.

[`write_file(...)`](https://www.tensorflow.org/api_docs/python/tf/io/write_file): Writes `contents` to the file at input `filename`.

[`write_graph(...)`](https://www.tensorflow.org/api_docs/python/tf/io/write_graph): Writes a graph proto to a file.