      def __init__(self, scale_factor=2, data_format=None, **kwargs):
          super().__init__(**kwargs)
  
          self.scale_factor = scale_factor
          if get_backend() == "amd":
              self.data_format = K.normalize_data_format(data_format)  # pylint:disable=no-member
          else:
              self.data_format = conv_utils.normalize_data_format(data_format)
  
      def build(self, input_shape):
          """Creates the layer weights.
  
          Must be implemented on all layers that have weights.
 
</s> remove                  plugin: "ModelBase",
 </s> add                  plugin: ModelBase, </s> remove             if get_backend() != "amd":
                retval = tf.image.resize(inputs, (size, size), method=self.interpolation)
            else:
                raise NotImplementedError
 </s> add             retval = tf.image.resize(inputs, (size, size), method=self.interpolation) </s> remove         if backend == "amd":
            return  # No settings for AMD
 </s> add  </s> remove         policy = dict(class_name="Policy", config=dict(name=dtype))
 </s> add         policy = {"class_name": "Policy", "config": {"name": dtype}} </s> remove                  activation: Optional[str] = "leakyrelu",
 </s> add                  activation: T.Optional[str] = "leakyrelu",
        self.data_format = conv_utils.normalize_data_format(data_format)
      def __init__(self, scale_factor=2, data_format=None, **kwargs):
          super().__init__(**kwargs)
  
          self.scale_factor = scale_factor
        self.data_format = conv_utils.normalize_data_format(data_format)
        self.data_format = conv_utils.normalize_data_format(data_format)
        self.data_format = conv_utils.normalize_data_format(data_format)
        self.data_format = conv_utils.normalize_data_format(data_format)
  
      def build(self, input_shape):
          """Creates the layer weights.
  
          Must be implemented on all layers that have weights.
keep keep keep keep replace replace 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/layers.py