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

Method _prewrite_check

tensorflow/python/lib/io/file_io.py:86–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 compat.as_bytes(self.__name), 1024 * 512)
85
86 def _prewrite_check(self):
87 if not self._writable_file:
88 if not self._write_check_passed:
89 raise errors.PermissionDeniedError(None, None,
90 "File isn't open for writing")
91 self._writable_file = pywrap_tensorflow.CreateWritableFile(
92 compat.as_bytes(self.__name), compat.as_bytes(self.__mode))
93
94 def _prepare_value(self, val):
95 if self._binary_mode:

Callers 2

writeMethod · 0.95
tellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected