                                  f"{valid}.")
  
          tf_ver = get_tf_version()
          tf_min = model.tf_min
          if get_backend() != "amd" and tf_ver < tf_min:
              raise FaceswapError(f"{arch}' is not compatible with your version of Tensorflow. The "
                                  f"minimum version required is {tf_min} whilst you have version "
                                  f"{tf_ver} installed.")
  
      def build_model(self, inputs: List[Tensor]) -> keras.models.Model:
 
</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         if backend != "amd" and tf_ver < min_ver:
 </s> add         if tf_ver < min_ver: </s> remove         if self.backend == "amd" and sys.version_info >= (3, 9):
            logger.error("The AMD version of Faceswap cannot be installed on versions of Python "
                         "higher than 3.8")
            sys.exit(1)
 </s> add  </s> remove         self._mixed_precision = self.config["mixed_precision"] and get_backend() != "amd"
 </s> add         self._mixed_precision = self.config["mixed_precision"]
        if tf_ver < tf_min:
                                  f"{valid}.")
  
          tf_ver = get_tf_version()
          tf_min = model.tf_min
        if tf_ver < tf_min:
              raise FaceswapError(f"{arch}' is not compatible with your version of Tensorflow. The "
                                  f"minimum version required is {tf_min} whilst you have version "
                                  f"{tf_ver} installed.")
  
      def build_model(self, inputs: List[Tensor]) -> keras.models.Model:
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 
plugins/train/model/phaze_a.py