"eigen-master/doc/examples/TutorialLinAlgExSolveLDLT.cpp" did not exist on "e7df86554156b36846008d8ddbcc4d8521a16554"
Commit e1364ca0 authored by Christopher Shallue's avatar Christopher Shallue
Browse files

Close the TFRecordWriter after use.

parent d7a4970e
...@@ -286,6 +286,7 @@ def _process_image_files(thread_index, ranges, name, images, decoder, vocab, ...@@ -286,6 +286,7 @@ def _process_image_files(thread_index, ranges, name, images, decoder, vocab,
(datetime.now(), thread_index, counter, num_images_in_thread)) (datetime.now(), thread_index, counter, num_images_in_thread))
sys.stdout.flush() sys.stdout.flush()
writer.close()
print("%s [thread %d]: Wrote %d image-caption pairs to %s" % print("%s [thread %d]: Wrote %d image-caption pairs to %s" %
(datetime.now(), thread_index, shard_counter, output_file)) (datetime.now(), thread_index, shard_counter, output_file))
sys.stdout.flush() sys.stdout.flush()
......
...@@ -273,6 +273,7 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames, ...@@ -273,6 +273,7 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames,
(datetime.now(), thread_index, counter, num_files_in_thread)) (datetime.now(), thread_index, counter, num_files_in_thread))
sys.stdout.flush() sys.stdout.flush()
writer.close()
print('%s [thread %d]: Wrote %d images to %s' % print('%s [thread %d]: Wrote %d images to %s' %
(datetime.now(), thread_index, shard_counter, output_file)) (datetime.now(), thread_index, shard_counter, output_file))
sys.stdout.flush() sys.stdout.flush()
......
...@@ -399,6 +399,7 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames, ...@@ -399,6 +399,7 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames,
(datetime.now(), thread_index, counter, num_files_in_thread)) (datetime.now(), thread_index, counter, num_files_in_thread))
sys.stdout.flush() sys.stdout.flush()
writer.close()
print('%s [thread %d]: Wrote %d images to %s' % print('%s [thread %d]: Wrote %d images to %s' %
(datetime.now(), thread_index, shard_counter, output_file)) (datetime.now(), thread_index, shard_counter, output_file))
sys.stdout.flush() sys.stdout.flush()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment