                                autoclip,
                                10 ** int(self.config["epsilon_exponent"])).optimizer
          if self._settings.use_mixed_precision:
              optimizer = self._settings.loss_scale_optimizer(optimizer)
          if get_backend() == "amd":
              self._rewrite_plaid_outputs()
  
          weights = Weights(self)
          weights.load(self._io.model_exists)
          weights.freeze()
  
 
</s> remove                               autoclip,
 </s> add                               self.config["autoclip"], </s> remove         autoclip = get_backend() != "amd" and self.config["autoclip"]
 </s> add  </s> remove                  plugin: "ModelBase",
 </s> add                  plugin: ModelBase, </s> remove             klayer: keras.layers.Layer = layer[0]
 </s> add             klayer: tf.keras.layers.Layer = layer[0] </s> remove             old_model: keras.models.Model = load_model(os.path.join(archive_dir, model_name),
                                                       compile=False)
 </s> add             old_model: tf.keras.models.Model = load_model(os.path.join(archive_dir, model_name),
                                                          compile=False)
                                autoclip,
                                10 ** int(self.config["epsilon_exponent"])).optimizer
          if self._settings.use_mixed_precision:
              optimizer = self._settings.loss_scale_optimizer(optimizer)


  
          weights = Weights(self)
          weights.load(self._io.model_exists)
          weights.freeze()
  
keep keep keep keep replace 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