              self._handle_import_error(msg)
  
          tf_ver = get_tf_version()
          backend = get_backend()
          if backend != "amd" and tf_ver < min_ver:
              msg = (f"The minimum supported Tensorflow is version {min_ver} but you have version "
                     f"{tf_ver} installed. Please upgrade Tensorflow.")
              self._handle_import_error(msg)
          if backend != "amd" and tf_ver > max_ver:
              msg = (f"The maximum supported Tensorflow is version {max_ver} but you have version "
 
</s> remove         if get_backend() != "amd" and tf_ver < tf_min:
 </s> add         if tf_ver < tf_min: </s> remove         if get_backend() == "amd" and model.no_amd:
            valid = [k for k, v in _MODEL_MAPPING.items() if not v.no_amd]
            raise FaceswapError(f"'{arch}' is not compatible with the AMD backend. Choose one of "
                                f"{valid}.")

 </s> add  </s> remove     def build_model(self, inputs: List[Tensor]) -> keras.models.Model:
 </s> add     def build_model(self, inputs: T.List[Tensor]) -> keras.models.Model: </s> remove         self._mixed_precision = self.config["mixed_precision"] and get_backend() != "amd"
 </s> add         self._mixed_precision = self.config["mixed_precision"] </s> remove     def _amd_ask_enable(self) -> None:
        """ Set backend to 'amd' to use plaidML if AMD support required """
        msg = ""
        if self._env.os_version[0] == "Windows":
            msg = "AMD users should select 'DirectML support' if possible.\r\n"
        if self._env.os_version[0] == "Linux":
            msg = "AMD users should select 'ROCm support' if possible.\r\n"

        logger.info("AMD Support:\r\nThis version is deprecated and will be removed from a future "
                    "update.\r\n%s"
                    "Nvidia Users MUST answer 'no' to this option.", msg)
        i = input("Enable AMD Support? [y/N] ")
        if i in ("Y", "y"):
            logger.info("AMD Support Enabled")
            self._env.backend = "amd"

 </s> add 
        if tf_ver < min_ver:
              self._handle_import_error(msg)
  
          tf_ver = get_tf_version()
          backend = get_backend()
        if tf_ver < min_ver:
              msg = (f"The minimum supported Tensorflow is version {min_ver} but you have version "
                     f"{tf_ver} installed. Please upgrade Tensorflow.")
              self._handle_import_error(msg)
          if backend != "amd" and tf_ver > max_ver:
              msg = (f"The maximum supported Tensorflow is version {max_ver} but you have version "
keep keep keep keep replace keep keep keep keep keep
 Remove plaidML support (#1325)

* Remove PlaidML reference from readme files

* Remove AMD option from installers

* remove amd requirements and update setup.py

* remove plaidml test from CI workflow

* gpustats: remove plaidml backend

* plaid removals:
  - faceswap.py - python version check
  - setup.cfg - plaidml typing ignore
  - lib.keras_utils - All plaid code
  - lib.launcher.py - All plaidml checks and configuration

* remove tf2.2 specific code from GUI event reader

* lib.model - remove all plaidml implementations

* plugins.extract - remove plaidml code

* plugins.train remove plaidml code

* lib.convert - remove plaidml code

* tools.model: remove plaidml code

* Remove plaidML tests from unit tests

* remove plaidml_utils and docsting cleanups

* Remove plaidML refs from configs

* fix keras imports 
lib/cli/launcher.py