<p dir="auto">Referencing this <a href="http://stackoverflow.com/questions/40370866/tf-corrupted-record-while-training/40396754#40396754" rel="nofollow">post</a> on stackoverflow.</p>
<p dir="auto">There may be situations when we write huge databases of images into a TFRecord (or at least a few TFRecords). It would be good if there's an option to check every write to prevent such cases of corrupted data happening during training.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/allenlavoie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/allenlavoie">@allenlavoie</a></p>
<p dir="auto">Hi,</p>
<ul dir="auto">
<li>Have I written custom code: <strong>NO</strong></li>
<li>OS Platform and Distribution: <strong>Ubuntu 18.0.4 LTS</strong></li>
<li>TensorFlow installed from: <strong>Github 1.9 release branch</strong></li>
<li>TensorFlow version: <strong>1.9</strong></li>
<li>Bazel version: <strong>0.16.0</strong></li>
<li>CUDA/cuDNN version: <strong>9.1 / 7.0</strong></li>
<li>GPU model and memory: <strong>GTX 1070 Ti, 8 Go</strong></li>
<li>Exact command to reproduce: <strong>see below</strong></li>
</ul>
<p dir="auto">I'm working on a FCN (Fully Convolutional Network <a href="https://people.eecs.berkeley.edu/~jonlong/long_shelhamer_fcn.pdf" rel="nofollow">https://people.eecs.berkeley.edu/~jonlong/long_shelhamer_fcn.pdf</a>) and wanted to make it work on mobile. The advantage of this type of network is that we can use any dimensions as input, the network still work. (for example, an image 512x512 or 512x384 or 612x358...)</p>
<p dir="auto">TfLite allow us to convert a freezed graph (.pb) to Tflite format (.tflite), but we need to put a fixed size for "input_shape".</p>
<p dir="auto">bazel-bin/tensorflow/contrib/lite/toco/toco --input_file=frozen.pb --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --output_file=/tmp/test.tflite --inference_input_type=FLOAT --input_arrays=input_image --output_arrays=output_image --input_shapes="1,<strong>384,512</strong>,3"</p>
<p dir="auto">And this what I would like:</p>
<p dir="auto">bazel-bin/tensorflow/contrib/lite/toco/toco --input_file=frozen.pb --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --output_file=/tmp/test.tflite --inference_input_type=FLOAT --input_arrays=input_image --output_arrays=output_image --input_shapes="1,<strong>None,None</strong>,3"</p>
<p dir="auto">I'm wondering if anyone is working on this feature, because I think it can be very useful for a lot of people.</p>
<p dir="auto">Thank you for your time, and sorry if I duplicate any thread, I didn't find this feature request.</p>