                  if attempt + 1 < self.retries:
                      logger.warning("Error downloading model (%s). Retrying %s of %s...",
                                     str(err), attempt + 2, self.retries)
                  else:
                      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)
                      exit(1)
  
      def write_zipfile(self, response, downloaded_size):
          """ Write the model zip file to disk """
          length = int(response.getheader("content-length")) + downloaded_size
 
</s> remove                     logger.warning("Error downloading model (%s). Retrying %s of %s...",
                                   str(err), attempt + 2, self.retries)
 </s> add                     self.logger.warning("Error downloading model (%s). Retrying %s of %s...",
                                        str(err), attempt + 2, self.retries) </s> remove             logger.info("Zip already exists. Skipping download")
 </s> add             self.logger.info("Zip already exists. Skipping download") </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.trace(retval)
 </s> add         self.logger.trace(retval) </s> remove         logger.trace(retval)
 </s> add         self.logger.trace(retval)
                    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)
                  if attempt + 1 < self.retries:
                      logger.warning("Error downloading model (%s). Retrying %s of %s...",
                                     str(err), attempt + 2, self.retries)
                  else:
                    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)
                    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)
                    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)
                    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)
                    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)
                      exit(1)
  
      def write_zipfile(self, response, downloaded_size):
          """ Write the model zip file to disk """
          length = int(response.getheader("content-length")) + downloaded_size
keep keep keep keep replace replace replace replace 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