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

Method close

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

Closes FileIO. Should be called for the WritableFile to be flushed.

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

testMultipleFilesMethod · 0.95
__exit__Method · 0.95

Calls 1

CloseMethod · 0.45

Tested by 1

testMultipleFilesMethod · 0.76