MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / flush

Method flush

tensorflow/python/lib/io/file_io.py:222–232  ·  view source on GitHub ↗

Flushes the Writable file. This only ensures that the data has made its way out of the process without any guarantees on whether it's written to disk. This means that the data would survive an application crash but not necessarily an OS crash.

(self)

Source from the content-addressed store, hash-verified

220 return self.next()
221
222 def flush(self):
223 """Flushes the Writable file.
224
225 This only ensures that the data has made its way out of the process without
226 any guarantees on whether it's written to disk. This means that the
227 data would survive an application crash but not necessarily an OS crash.
228 """
229 if self._writable_file:
230 with errors.raise_exception_on_not_ok_status() as status:
231 ret_status = self._writable_file.Flush()
232 pywrap_tensorflow.Set_TF_Status_from_Status(status, ret_status)
233
234 def close(self):
235 """Closes FileIO. Should be called for the WritableFile to be flushed."""

Callers 15

testMultipleFilesMethod · 0.95
testReadlinesMethod · 0.95
testEofMethod · 0.95
trainFunction · 0.45
trainFunction · 0.45
trainFunction · 0.45
trainFunction · 0.45
mainMethod · 0.45
write_csv_from_dictFunction · 0.45
__exit__Method · 0.45
captureWritesToStreamMethod · 0.45
testZLibFlushRecordMethod · 0.45

Calls 1

FlushMethod · 0.45

Tested by 14

testMultipleFilesMethod · 0.76
testReadlinesMethod · 0.76
testEofMethod · 0.76
mainMethod · 0.36
__exit__Method · 0.36
captureWritesToStreamMethod · 0.36
testZLibFlushRecordMethod · 0.36
ChildProcessFunction · 0.36
assertCorrectTopKMethod · 0.36