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)
| 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.""" |