          """
          logger.verbose("Initializing plugin model: %s", self._name)  # type:ignore
          with self._context:
              self._model = k_load_model(self._model_path, compile=False, **self._model_kwargs)
              if self._backend != "amd":
                  self._model.make_predict_function()
  
      def define_model(self, function: Callable) -> None:
          """ Defines a model from the given function.
  
          This method acts as a wrapper for :class:`keras.models.Model()`.
 
</s> remove         this is a straight call to the predict function. For PlaidML backends, this attempts
        to optimize the inference batch sizes to reduce the number of kernels that need to be
        compiled.
 </s> add         this is a straight call to the predict function. </s> remove     This is an early implementation of this class, and should be expanded out over time
    with relevant `AMD`, `CPU` and `NVIDIA` backend methods.
 </s> add     This is an early implementation of this class, and should be expanded out over time. </s> remove                  model: "ModelBase",
                 images: Dict[Literal["a", "b"], List[str]],
 </s> add                  model: ModelBase,
                 images: T.Dict[Literal["a", "b"], T.List[str]], </s> remove     def model(self) -> keras.models.Model:
 </s> add     def model(self) -> tf.keras.models.Model: </s> remove from lib.model.nn_blocks import Conv2DOutput, Conv2DBlock, UpscaleBlock
from lib.utils import get_backend
from ._base import KerasModel, ModelBase
 </s> add # Ignore linting errors from Tensorflow's thoroughly broken import system
from tensorflow.keras.layers import Dense, Flatten, Reshape, Input  # noqa:E501  # pylint:disable=import-error
from tensorflow.keras.models import Model as KModel  # pylint:disable=import-error

            self._model.make_predict_function()
          """
          logger.verbose("Initializing plugin model: %s", self._name)  # type:ignore
          with self._context:
              self._model = k_load_model(self._model_path, compile=False, **self._model_kwargs)
            self._model.make_predict_function()
            self._model.make_predict_function()
  
      def define_model(self, function: Callable) -> None:
          """ Defines a model from the given function.
  
          This method acts as a wrapper for :class:`keras.models.Model()`.
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 
lib/model/session.py