                                    for detected_face in item["detected_faces"]]
                  if faces_seen != 0:
                      feed_faces = self._compile_feed_faces(detected_batch)
                      batch_size = None
                      if is_plaidml and feed_faces.shape[0] != self._batchsize:
                          logger.verbose("Fallback to BS=1")
                          batch_size = 1
                      predicted = self._predict(feed_faces, batch_size)
                  else:
                      predicted = list()
 
</s> remove         is_plaidml = GPUStats().is_plaidml
 </s> add         is_amd = get_backend() == "amd" </s> remove             if self.device_count == 0:
                self.active_devices = list()
 </s> add             if self._device_count == 0:
                self._active_devices = list() </s> remove                 self.active_devices = [int(i) for i in devices.split(",") if devices]
 </s> add                 self._active_devices = [int(i) for i in devices.split(",") if devices] </s> remove         if self.plaid is not None:
            names = self.plaid.names
 </s> add         if self._is_plaidml:
            names = self._plaid.names </s> remove         self.logger = None
        if log:
            # Logger is held internally, as we don't want to log
            # when obtaining system stats on crash
            self.logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
            self.logger.debug("Initializing %s", self.__class__.__name__)

        self.plaid = None
        self.initialized = False
        self.device_count = 0
        self.active_devices = list()
        self.handles = list()
        self.driver = None
        self.devices = list()
        self.vram = None

        self.initialize(log)

        self.driver = self.get_driver()
        self.devices = self.get_devices()
        self.vram = self.get_vram()
        if not self.active_devices:
            if self.logger:
                self.logger.warning("No GPU detected. Switching to CPU mode")
 </s> add         # Logger is held internally, as we don't want to log when obtaining system stats on crash
        self._logger = logging.getLogger(__name__) if log else None
        self._log("debug", "Initializing {}".format(self.__class__.__name__))

        self._plaid = None
        self._initialized = False
        self._device_count = 0
        self._active_devices = list()
        self._handles = list()
        self._driver = None
        self._devices = list()
        self._vram = None

        self._initialize(log)

        self._driver = self._get_driver()
        self._devices = self._get_devices()
        self._vram = self._get_vram()
        if not self._active_devices:
            self._log("warning", "No GPU detected. Switching to CPU mode")
                    if is_amd and feed_faces.shape[0] != self._batchsize:
                                    for detected_face in item["detected_faces"]]
                  if faces_seen != 0:
                      feed_faces = self._compile_feed_faces(detected_batch)
                      batch_size = None
                    if is_amd and feed_faces.shape[0] != self._batchsize:
                          logger.verbose("Fallback to BS=1")
                          batch_size = 1
                      predicted = self._predict(feed_faces, batch_size)
                  else:
                      predicted = list()
keep keep keep keep replace keep keep keep keep keep
 Core Updates (#1015)

- Remove lib.utils.keras_backend_quiet and replace with get_backend() where relevant
- Document lib.gpu_stats and lib.sys_info
- Remove call to GPUStats.is_plaidml from convert and replace with get_backend()
- lib.gui.menu - typofix 
scripts/convert.py