  
          if self.state.model_needs_rebuild:
              self._model = self._settings.check_model_precision(self._model, self._state)
  
          autoclip = get_backend() != "amd" and self.config["autoclip"]
          optimizer = Optimizer(self.config["optimizer"],
                                self.config["learning_rate"],
                                autoclip,
                                10 ** int(self.config["epsilon_exponent"])).optimizer
          if self._settings.use_mixed_precision:
 
</s> remove                               autoclip,
 </s> add                               self.config["autoclip"], </s> remove         if get_backend() == "amd":
            self._rewrite_plaid_outputs()
 </s> add  </s> remove             if get_backend() == "amd" and feed_faces.shape[0] != self._batchsize:
                logger.verbose("Fallback to BS=1")  # type:ignore
                batch_size = 1
 </s> add  </s> remove         if backend != "amd" and tf_ver < min_ver:
 </s> add         if tf_ver < min_ver: </s> remove         self._mixed_precision = self.config["mixed_precision"] and get_backend() != "amd"
 </s> add         self._mixed_precision = self.config["mixed_precision"]
  
          if self.state.model_needs_rebuild:
              self._model = self._settings.check_model_precision(self._model, self._state)
  

          optimizer = Optimizer(self.config["optimizer"],
                                self.config["learning_rate"],
                                autoclip,
                                10 ** int(self.config["epsilon_exponent"])).optimizer
          if self._settings.use_mixed_precision:
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/_base/model.py