Closes FileIO. Should be called for the WritableFile to be flushed.
(self)
| 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.""" |
| 236 | self._read_buf = None |
| 237 | if self._writable_file: |
| 238 | with errors.raise_exception_on_not_ok_status() as status: |
| 239 | ret_status = self._writable_file.Close() |
| 240 | pywrap_tensorflow.Set_TF_Status_from_Status(status, ret_status) |
| 241 | self._writable_file = None |
| 242 | |
| 243 | def seekable(self): |
| 244 | """Returns True as FileIO supports random access ops of seek()/tell()""" |