                           "use_mixed_precision: %s)", get_backend(), use_mixed_precision)
              return False
  
          if not use_mixed_precision:
              policy = mixedprecision.Policy('float32')
              mixedprecision.set_global_policy(policy)
              logger.debug("Disabling mixed precision. (Compute dtype: %s, variable_dtype: %s)",
                           policy.compute_dtype, policy.variable_dtype)
              return False
  
          policy = mixedprecision.Policy('mixed_float16')
 
</s> remove         policy = mixedprecision.Policy('mixed_float16')
        mixedprecision.set_global_policy(policy)
 </s> add         policy = mixedprecision.Policy('mixed_float16')  # pylint:disable=no-member
        mixedprecision.set_global_policy(policy)  # pylint:disable=no-member </s> remove         if get_backend() == "amd":
            logger.debug("No action to perform for 'mixed_precision' on backend '%s': "
                         "use_mixed_precision: %s)", get_backend(), use_mixed_precision)
            return False

 </s> add  </s> remove     else:
        signature = inspect.signature(func)
        parameter = signature.parameters.get(name)
        if parameter is None:
            if accept_all:
                for param in signature.parameters.values():
                    if param.kind == inspect.Parameter.VAR_KEYWORD:
                        return True
            return False
        return (parameter.kind in (inspect.Parameter.POSITIONAL_OR_KEYWORD,
                                   inspect.Parameter.KEYWORD_ONLY))
 </s> add     signature = inspect.signature(func)
    parameter = signature.parameters.get(name)
    if parameter is None:
        if accept_all:
            for param in signature.parameters.values():
                if param.kind == inspect.Parameter.VAR_KEYWORD:
                    return True
        return False
    return (parameter.kind in (inspect.Parameter.POSITIONAL_OR_KEYWORD,
                               inspect.Parameter.KEYWORD_ONLY)) </s> remove     def _get_mixed_precision_layers(self, layers: List[dict]) -> List[str]:
 </s> add     def _get_mixed_precision_layers(self, layers: T.List[dict]) -> T.List[str]: </s> remove         policy = dict(class_name="Policy", config=dict(name=dtype))
 </s> add         policy = {"class_name": "Policy", "config": {"name": dtype}}
            policy = mixedprecision.Policy('float32')  # pylint:disable=no-member
            mixedprecision.set_global_policy(policy)  # pylint:disable=no-member
                           "use_mixed_precision: %s)", get_backend(), use_mixed_precision)
              return False
  
          if not use_mixed_precision:
            policy = mixedprecision.Policy('float32')  # pylint:disable=no-member
            mixedprecision.set_global_policy(policy)  # pylint:disable=no-member
            policy = mixedprecision.Policy('float32')  # pylint:disable=no-member
            mixedprecision.set_global_policy(policy)  # pylint:disable=no-member
              logger.debug("Disabling mixed precision. (Compute dtype: %s, variable_dtype: %s)",
                           policy.compute_dtype, policy.variable_dtype)
              return False
  
          policy = mixedprecision.Policy('mixed_float16')
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/settings.py