コード例 #1
0
ファイル: file_io.py プロジェクト: zouweidong91/tensorflow
 def write(self, file_content):
     """Writes file_content to the file. Appends to the end of the file."""
     self._prewrite_check()
     with errors.raise_exception_on_not_ok_status() as status:
         pywrap_tensorflow.AppendToFile(compat.as_bytes(file_content),
                                        self._writable_file, status)
コード例 #2
0
 def write(self, file_content):
   """Writes file_content to the file. Appends to the end of the file."""
   self._prewrite_check()
   pywrap_tensorflow.AppendToFile(
       compat.as_bytes(file_content), self._writable_file)