      :class:`keras.layers.Layer`
          The selected configured upscale layer
      """
      if method == "upsample2d":
          kwargs: Dict[str, Union[str, int]] = {}
          if upsamples:
              kwargs["size"] = upsamples
          if interpolation:
              kwargs["interpolation"] = interpolation
          return UpSampling2D(**kwargs)
 
</s> remove                        activation: Optional[str] = None,
                       upsamples: Optional[int] = None,
                       interpolation: Optional[str] = None) -> keras.layers.Layer:
 </s> add                        activation: T.Optional[str] = None,
                       upsamples: T.Optional[int] = None,
                       interpolation: T.Optional[str] = None) -> keras.layers.Layer: </s> remove                  activation: Optional[str] = "leakyrelu",
 </s> add                  activation: T.Optional[str] = "leakyrelu", </s> remove                  activation: Optional[str] = "leakyrelu",
 </s> add                  activation: T.Optional[str] = "leakyrelu", </s> remove         preds: Dict[str, np.ndarray] = {}
 </s> add         preds: T.Dict[str, np.ndarray] = {} </s> remove     kwargs: Dict[str, Any] = field(default_factory=dict)
 </s> add     kwargs: T.Dict[str, T.Any] = field(default_factory=dict)
        kwargs: T.Dict[str, T.Union[str, int]] = {}
      :class:`keras.layers.Layer`
          The selected configured upscale layer
      """
      if method == "upsample2d":
        kwargs: T.Dict[str, T.Union[str, int]] = {}
          if upsamples:
              kwargs["size"] = upsamples
          if interpolation:
              kwargs["interpolation"] = interpolation
          return UpSampling2D(**kwargs)
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/phaze_a.py