          always saves the optimizer weights. `"exit"` only saves the optimizer weights on an exit
          request.
      """
      def __init__(self,
                   plugin: "ModelBase",
                   model_dir: str,
                   is_predict: bool,
                   save_optimizer: Literal["never", "always", "exit"]) -> None:
          self._plugin = plugin
          self._is_predict = is_predict
 
</s> remove                  arguments: "argparse.Namespace",
 </s> add                  arguments: argparse.Namespace, </s> remove         if get_backend() == "amd":
            self._rewrite_plaid_outputs()
 </s> add  </s> remove         return mixedprecision.LossScaleOptimizer(optimizer)
 </s> add         return mixedprecision.LossScaleOptimizer(optimizer)  # pylint:disable=no-member </s> remove     def __init__(self, arguments: "argparse.Namespace") -> None:
 </s> add     def __init__(self, arguments: argparse.Namespace) -> None: </s> remove                               autoclip,
 </s> add                               self.config["autoclip"],
                 plugin: ModelBase,
          always saves the optimizer weights. `"exit"` only saves the optimizer weights on an exit
          request.
      """
      def __init__(self,
                 plugin: ModelBase,
                   model_dir: str,
                   is_predict: bool,
                   save_optimizer: Literal["never", "always", "exit"]) -> None:
          self._plugin = plugin
          self._is_predict = is_predict
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/io.py