      def write_zipfile(self, response, downloaded_size):
          """ Write the model zip file to disk """
          length = int(response.getheader("content-length")) + downloaded_size
          if length == downloaded_size:
              logger.info("Zip already exists. Skipping download")
              return
          write_type = "wb" if downloaded_size == 0 else "ab"
          with open(self._model_zip_path, write_type) as out_file:
              pbar = tqdm(desc="Downloading",
                          unit="B",
 
</s> remove                     logger.error("Failed to download model. Exiting. (Error: '%s', URL: '%s')",
                                 str(err), self._url_download)
                    logger.info("You can try running again to resume the download.")
                    logger.info("Alternatively, you can manually download the model from: %s and "
                                "unzip the contents to: %s", self._url_download, self.cache_dir)
 </s> add                     self.logger.error("Failed to download model. Exiting. (Error: '%s', URL: "
                                      "'%s')", str(err), self._url_download)
                    self.logger.info("You can try running again to resume the download.")
                    self.logger.info("Alternatively, you can manually download the model from: %s "
                                     "and unzip the contents to: %s",
                                     self._url_download, self.cache_dir) </s> remove         logger.trace(retval)
 </s> add         self.logger.trace(retval) </s> remove         logger.trace(retval)
 </s> add         self.logger.trace(retval) </s> remove         logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download)
 </s> add         self.logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download) </s> remove         logger.debug("Zipfile: Filenames: %s, Total Size: %s", fnames, length)
 </s> add         self.logger.debug("Zipfile: Filenames: %s, Total Size: %s", fnames, length)
            self.logger.info("Zip already exists. Skipping download")
      def write_zipfile(self, response, downloaded_size):
          """ Write the model zip file to disk """
          length = int(response.getheader("content-length")) + downloaded_size
          if length == downloaded_size:
            self.logger.info("Zip already exists. Skipping download")
              return
          write_type = "wb" if downloaded_size == 0 else "ab"
          with open(self._model_zip_path, write_type) as out_file:
              pbar = tqdm(desc="Downloading",
                          unit="B",
keep keep keep keep replace keep keep keep keep keep
 Experimental AMD Support (#764)

* PlaidML support in setup.py

* Add AMD flag for plaidml support

* PlaidML - Use .plaidML file if present, otherwise default to largest available

* Update training info message for GUI

* Add AMD option to Windows Installer

* Add quiet keras.backend importer and minor sysinfo amend.

* plug PlaidMLStats into GPUStats

* Update Docs 
lib/utils.py