              self.logger.debug("GPU Handles found: %s", len(self.handles))
  
      def get_driver(self):
          """ Get the driver version """
          if IS_MACOS:
              driver = pynvx.cudaSystemGetDriverVersion(ignore=True)
          else:
              try:
                  driver = pynvml.nvmlSystemGetDriverVersion().decode("utf-8")
              except pynvml.NVMLError:
 
</s> remove         if IS_MACOS:
 </s> add         if self.plaid is not None:
            self.device_count = self.plaid.device_count
        elif IS_MACOS: </s> remove         logger.trace(retval)
 </s> add         self.logger.trace(retval) </s> remove             if IS_MACOS:
 </s> add             if K.backend() == "plaidml.keras.backend":
                if self.logger:
                    self.logger.debug("plaidML Detected. Using plaidMLStats")
                self.plaid = plaidlib(log=log)
            elif IS_MACOS: </s> remove         if IS_MACOS:
 </s> add         if self.plaid is not None:
            self.handles = self.plaid.devices
        elif IS_MACOS: </s> remove         devices = os.environ.get("CUDA_VISIBLE_DEVICES", None)
        if self.device_count == 0:
            self.active_devices = list()
        elif devices is not None:
            self.active_devices = [int(i) for i in devices.split(",") if devices]
 </s> add         if self.plaid is not None:
            self.active_devices = self.plaid.active_devices
        if self.plaid is not None:
            driver = self.plaid.drivers
        elif IS_MACOS:
              self.logger.debug("GPU Handles found: %s", len(self.handles))
  
      def get_driver(self):
          """ Get the driver version """
        if self.plaid is not None:
            driver = self.plaid.drivers
        elif IS_MACOS:
              driver = pynvx.cudaSystemGetDriverVersion(ignore=True)
          else:
              try:
                  driver = pynvml.nvmlSystemGetDriverVersion().decode("utf-8")
              except pynvml.NVMLError:
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/gpu_stats.py