  
          self._log_level: str = log_level.upper()
  
          # Following attributes are set in :func:``_initialize``
          self._ctx: Optional(plaidml.Context) = None
          self._supported_devices: Optional(List[plaidml._DeviceConfig]) = None
          self._all_devices: Optional(List[plaidml._DeviceConfig]) = None
          self._device_details: Optional(List[dict]) = None
  
          super().__init__(log=log)
  
      @property
      def active_devices(self) -> List[int]:
 
</s> remove     stats = AMDStats(log_level)
 </s> add     stats = AMDStats(log_level=log_level) </s> remove         print_fail("[-] Failed downloading: %s" % err)
 </s> add         print_fail(f"[-] Failed downloading: {err}") </s> remove         print_status("[?] Downloading '%s' to '%s'" % (url, filename))
 </s> add         print_status(f"[?] Downloading '{url}' to '{filename}'") </s> remove         details = [json.loads(d.details.decode("utf-8"))
                   for d in self._all_devices if d.details]
 </s> add         details = []
        for dev in self._all_devices:
            if dev.details:
                details.append(json.loads(dev.details.decode("utf-8")))
            else:
                details.append(dict(vendor=dev.id.decode("utf-8"),
                                    name=dev.description.decode("utf-8"),
                                    globalMemSize=4 * 1024 * 1024 * 1024))  # 4GB dummy ram </s> remove     logger.verbose("Setting Keras Backend to PlaidML")
 </s> add     logger.verbose("Setting Keras Backend to PlaidML")  # type:ignore
        self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = []
  
          self._log_level: str = log_level.upper()
  
          # Following attributes are set in :func:``_initialize``
        self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = []
        self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = []
        self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = []
        self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = []
  
          super().__init__(log=log)
  
      @property
      def active_devices(self) -> List[int]:
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fix AMD Tests + docs 
lib/gpu_stats/amd.py