              self.initialized = False
  
      def get_device_count(self):
          """ Return count of Nvidia devices """
          if IS_MACOS:
              self.device_count = pynvx.cudaDeviceGetCount(ignore=True)
          else:
              try:
                  self.device_count = pynvml.nvmlDeviceGetCount()
              except pynvml.NVMLError:
 
</s> remove             if not IS_MACOS:
 </s> add             if not IS_MACOS and not self.plaid: </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 </s> remove             self.active_devices = list(range(self.device_count))
        if self.logger:
            self.logger.debug("Active GPU Devices: %s", self.active_devices)
 </s> add             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]
            else:
                self.active_devices = list(range(self.device_count))
            if self.logger:
                self.logger.debug("Active GPU Devices: %s", self.active_devices) </s> remove         if IS_MACOS:
 </s> add         if self.plaid is not None:
            driver = self.plaid.drivers
        elif IS_MACOS:
        if self.plaid is not None:
            self.device_count = self.plaid.device_count
        elif IS_MACOS:
              self.initialized = False
  
      def get_device_count(self):
          """ Return count of Nvidia devices """
        if self.plaid is not None:
            self.device_count = self.plaid.device_count
        elif IS_MACOS:
              self.device_count = pynvx.cudaDeviceGetCount(ignore=True)
          else:
              try:
                  self.device_count = pynvml.nvmlDeviceGetCount()
              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