Esempio n. 1
0
  def tell(self):
    """Returns the current position in the file."""
    if self._read_check_passed:
      self._preread_check()
      return self._read_buf.Tell()
    else:
      self._prewrite_check()

      return pywrap_tensorflow.TellFile(self._writable_file)
Esempio n. 2
0
    def tell(self):
        """Returns the current position in the file."""
        if self._read_check_passed:
            self._preread_check()
            return self._read_buf.Tell()
        else:
            self._prewrite_check()

            with errors.raise_exception_on_not_ok_status() as status:
                return pywrap_tensorflow.TellFile(self._writable_file, status)