                  sys.exit(1)
              arguments.exclude_gpus = [int(idx) for idx in arguments.exclude_gpus]
              set_exclude_devices(arguments.exclude_gpus)
  
          if GPUStats().exclude_all_devices and get_backend() != "cpu":
              msg = "Switching backend to CPU"
              if get_backend() == "amd":
                  msg += (". Using Tensorflow for CPU operations.")
                  os.environ["KERAS_BACKEND"] = "tensorflow"
              set_backend("cpu")
 
</s> remove         if get_backend() == "amd":
            plaidml_found = self._setup_amd(arguments)
            if not plaidml_found:
                safe_shutdown(got_error=True)
                sys.exit(1)
 </s> add         if get_backend() == "amd" and not self._setup_amd(arguments):
            safe_shutdown(got_error=True) </s> remove         if not hasattr(arguments, "exclude_gpus"):
 </s> add         if get_backend() == "cpu": </s> remove         from lib.plaidml_tools import setup_plaidml  # pylint:disable=import-outside-toplevel
 </s> add         from lib.gpu_stats import setup_plaidml  # pylint:disable=import-outside-toplevel </s> remove opencv-python==4.5.3.0
 </s> add opencv-python>4.5.3.0,<4.5.4.0
        if GPUStats().exclude_all_devices:
                  sys.exit(1)
              arguments.exclude_gpus = [int(idx) for idx in arguments.exclude_gpus]
              set_exclude_devices(arguments.exclude_gpus)
  
        if GPUStats().exclude_all_devices:
              msg = "Switching backend to CPU"
              if get_backend() == "amd":
                  msg += (". Using Tensorflow for CPU operations.")
                  os.environ["KERAS_BACKEND"] = "tensorflow"
              set_backend("cpu")
keep keep keep keep replace keep keep keep keep keep
 Refactor lib.gpu_stats (#1218)

* inital gpu_stats refactor

* Add dummy CPU Backend

* Update Sphinx documentation 
lib/cli/launcher.py