          backend = get_backend()
          if backend == "amd":
              return  # No settings for AMD
          if backend == "cpu":
              logger.verbose("Hiding GPUs from Tensorflow")  # type:ignore
              tf.config.set_visible_devices([], "GPU")
              return
  
          if not exclude_devices and not allow_growth:
              logger.debug("Not setting any specific Tensorflow settings")
 
</s> remove         if backend == "amd":
            return  # No settings for AMD
 </s> add  </s> remove         lr_key = "lr" if get_backend() == "amd" else "learning_rate"
        self._kwargs[lr_key] = learning_rate

 </s> add         self._kwargs["learning_rate"] = learning_rate </s> remove         if backend != "amd" and tf_ver < min_ver:
 </s> add         if tf_ver < min_ver: </s> remove from lib.utils import get_backend

if get_backend() == "amd":
    import keras
    from keras import backend as K
else:
    # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow import keras
    from tensorflow.keras import backend as K  # pylint:disable=import-error
 </s> add # Ignore linting errors from Tensorflow's thoroughly broken import system
from tensorflow import keras
from tensorflow.keras import backend as K  # pylint:disable=import-error </s> remove 
        Notes
        -----
        Clip-norm is ballooning VRAM usage, which is not expected behavior and may be a bug in
        Keras/Tensorflow.

        PlaidML has a bug regarding the clip-norm parameter See:
        https://github.com/plaidml/plaidml/issues/228. We workaround by simply not adding this
        parameter for AMD backend users.
 </s> add 
            logger.verbose("Hiding GPUs from Tensorflow")  # type:ignore[attr-defined]
          backend = get_backend()
          if backend == "amd":
              return  # No settings for AMD
          if backend == "cpu":
            logger.verbose("Hiding GPUs from Tensorflow")  # type:ignore[attr-defined]
              tf.config.set_visible_devices([], "GPU")
              return
  
          if not exclude_devices and not allow_growth:
              logger.debug("Not setting any specific Tensorflow settings")
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/settings.py