syntax = "proto3"; package tensorflow.data; import "tensorflow/core/framework/tensor.proto"; import "tensorflow/core/framework/tensor_shape.proto"; import "tensorflow/core/framework/types.proto"; option cc_enable_arenas = true; // This file contains protocol buffers for working with tf.data Datasets. // Metadata describing a compressed component of a dataset element. message CompressedComponentMetadata { // The dtype of the component tensor. .tensorflow.DataType dtype = 1; // The shape of the component tensor. .tensorflow.TensorShapeProto tensor_shape = 2; // Size of the uncompressed tensor bytes. For tensors serialized as // TensorProtos, this is TensorProto::BytesAllocatedLong(). For raw Tensors, // this is the size of the buffer underlying the Tensor. int64 tensor_size_bytes = 3; } message CompressedElement { // Compressed tensor bytes for all components of the element. bytes data = 1; // Metadata for the components of the element. repeated CompressedComponentMetadata component_metadata = 2; } // An uncompressed dataset element. message UncompressedElement { repeated TensorProto components = 1; }