              row, stack_size, filters_size = shape
  
              transpose_dimensions = (2, 1, 0)
              kernel_shape = (row,)
              correct_ifft = lambda shape, s=[None]: np.fft.irfft(shape, s[0])  # noqa
              correct_fft = np.fft.rfft
  
          elif rank == 4:
              row, column, stack_size, filters_size = shape
  
 
</s> remove     no_amd: bool = False
    tf_min: Tuple[int, int] = (2, 0)
    scaling: Tuple[int, int] = (0, 1)
 </s> add     tf_min: T.Tuple[int, int] = (2, 0)
    scaling: T.Tuple[int, int] = (0, 1) </s> remove         amd_ver = (2, 2)
 </s> add  </s> remove         self.input_shape: Tuple[int, ...] = ()
 </s> add         self.input_shape: T.Tuple[int, ...] = () </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     assert backend.backend == "amd"
 </s> add     assert backend.backend == "cpu"
            correct_ifft = lambda shape, s=[None]: np.fft.irfft(shape, s[0])  # noqa:E501,E731 # pylint:disable=unnecessary-lambda-assignment
              row, stack_size, filters_size = shape
  
              transpose_dimensions = (2, 1, 0)
              kernel_shape = (row,)
            correct_ifft = lambda shape, s=[None]: np.fft.irfft(shape, s[0])  # noqa:E501,E731 # pylint:disable=unnecessary-lambda-assignment
              correct_fft = np.fft.rfft
  
          elif rank == 4:
              row, column, stack_size, filters_size = shape
  
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 
lib/model/initializers.py