How to read images with different size in a TFRecord file
<p>I have created a dataset and saved it into a TFRecord file. The thing is the pictures have different size, so I want to save the size as well with the images. So I used the TFRecordWriter and defined the features like:</p>

<pre><code>example = tf.train.Example(features=tf.train.Features(feature={
  'rows': _int64_feature(image.shape[0]),
  'cols': _int64_feature(image.shape[1]),
  'image_raw': _bytes_feature(image_raw)}))
</code></pre>

<p>I expected that I can read and decode the image using TFRecordReader, but the thing is I cannot get the value of rows and cols from the file because they are tensors. So how am I supposed to do to read the size dynamically and reshape the image accordingly. Thanks guys</p>