<h2 dir="auto">I have a big problem, I use the  tfrecord file to import data for my tensorflow program. But, when the program run a period of time， it displays the DataLossError:</h2>
<h3 dir="auto">System information</h3>
<p dir="auto">OS Platform and Distribution : Linux Ubuntu 14.04<br>
TensorFlow installed from : Anaconda<br>
TensorFlow version : 1.3.0<br>
Python version:  2.7.13<br>
CUDA/cuDNN version: 8.0 / 6.0<br>
GPU model and memory: Pascal TITAN X</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">2017-10-03 19:45:43.854601: W tensorflow/core/framework/op_kernel.cc:1192] Data loss: corrupted record at 12<br>
Traceback (most recent call last):<br>
File "east_quad_train_backup.py", line 416, in <br>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run<br>
_sys.exit(main(_sys.argv[:1] + flags_passthrough))<br>
File "east_quad_train_backup.py", line 330, in main<br>
Training()<br>
File "east_quad_train_backup.py", line 312, in Training<br>
feed_dict={learning_rate: lr})<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run<br>
run_metadata_ptr)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run<br>
feed_dict_tensor, options, run_metadata)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run<br>
options, run_metadata)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call<br>
raise type(e)(node_def, op, message)<br>
tensorflow.python.framework.errors_impl.DataLossError: corrupted record at 12<br>
[[Node: IteratorGetNext = IteratorGetNext<a href="Iterator">output_shapes=[[?,512,512,3], [?,128,128,9]], output_types=[DT_UINT8, DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br>
[[Node: gradients/Tile_grad/Shape/_23 = _HostRecv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_442_gradients/Tile_grad/Shape", tensor_type=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"</a>]]</p>
<p dir="auto">Caused by op u'IteratorGetNext', defined at:<br>
File "east_quad_train_backup.py", line 416, in <br>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run<br>
_sys.exit(main(_sys.argv[:1] + flags_passthrough))<br>
File "east_quad_train_backup.py", line 330, in main<br>
Training()<br>
File "east_quad_train_backup.py", line 251, in Training<br>
batch_image, batch_label = iterator.get_next()<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 304, in get_next<br>
name=name))<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 379, in iterator_get_next<br>
output_shapes=output_shapes, name=name)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op<br>
op_def=op_def)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op<br>
original_op=self._default_original_op, op_def=op_def)<br>
File "/home/t/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in <strong>init</strong><br>
self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access</p>
<p dir="auto">DataLossError (see above for traceback): corrupted record at 12<br>
[[Node: IteratorGetNext = IteratorGetNext<a href="Iterator">output_shapes=[[?,512,512,3], [?,128,128,9]], output_types=[DT_UINT8, DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br>
[[Node: gradients/Tile_grad/Shape/_23 = _HostRecv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_442_gradients/Tile_grad/Shape", tensor_type=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"</a>]]</p>
<p dir="auto">Thanks anyone to answer this question.</p>
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests.  All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p>