                          self.logger.debug("OS is not macOS. Using pynvml")
                      pynvml.nvmlInit()
                  except (pynvml.NVMLError_LibraryNotFound,  # pylint: disable=no-member
                          pynvml.NVMLError_DriverNotLoaded,  # pylint: disable=no-member
                          pynvml.NVMLError_NoPermission):  # pylint: disable=no-member
                      self.initialized = True
                      return
              self.initialized = True
              self.get_device_count()
              self.get_active_devices()
              self.get_handles()
  
 
</s> remove logger = logging.getLogger(__name__)  # pylint: disable=invalid-name

 </s> add  </s> remove         if IS_MACOS:
 </s> add         if self.plaid is not None:
            self.device_count = self.plaid.device_count
        elif IS_MACOS:
                        pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                    if plaidlib is not None:
                        self.plaid = plaidlib(log=log)
                    else:
                        raise err
                          self.logger.debug("OS is not macOS. Using pynvml")
                      pynvml.nvmlInit()
                  except (pynvml.NVMLError_LibraryNotFound,  # pylint: disable=no-member
                          pynvml.NVMLError_DriverNotLoaded,  # pylint: disable=no-member
                        pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                    if plaidlib is not None:
                        self.plaid = plaidlib(log=log)
                    else:
                        raise err
                        pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                    if plaidlib is not None:
                        self.plaid = plaidlib(log=log)
                    else:
                        raise err
                        pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                    if plaidlib is not None:
                        self.plaid = plaidlib(log=log)
                    else:
                        raise err
              self.initialized = True
              self.get_device_count()
              self.get_active_devices()
              self.get_handles()
  
keep keep keep keep 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/gpu_stats.py