          return autoencoder
  
      def encoder(self):
          """ Unbalanced Encoder """
          kwargs = dict(kernel_initializer=self.kernel_initializer)
          encoder_complexity = 128 if self.low_mem else self.config["complexity_encoder"]
          dense_dim = 384 if self.low_mem else 512
          dense_shape = self.input_shape[0] // 16
          input_ = Input(shape=self.input_shape)
  
 
</s> remove         kwargs = dict(kernel_size=5, kernel_initializer=self.kernel_initializer)
 </s> add         kwargs = {"kernel_size": 5, "kernel_initializer": self.kernel_initializer} </s> remove         kwargs = dict(kernel_size=5, kernel_initializer=self.kernel_initializer)
 </s> add         kwargs = {"kernel_size": 5, "kernel_initializer": self.kernel_initializer} </s> remove         kwargs = dict(kernel_initializer=self.kernel_initializer)
 </s> add         kwargs = {"kernel_initializer": self.kernel_initializer} </s> remove         autoencoder = KerasModel(inputs, outputs, name=self.model_name)
 </s> add         autoencoder = KModel(inputs, outputs, name=self.model_name) </s> remove         autoencoder = KerasModel(inputs, outputs, name=self.model_name)
 </s> add         autoencoder = KModel(inputs, outputs, name=self.model_name)
        kwargs = {"kernel_initializer": self.kernel_initializer}
          return autoencoder
  
      def encoder(self):
          """ Unbalanced Encoder """
        kwargs = {"kernel_initializer": self.kernel_initializer}
          encoder_complexity = 128 if self.low_mem else self.config["complexity_encoder"]
          dense_dim = 384 if self.low_mem else 512
          dense_shape = self.input_shape[0] // 16
          input_ = Input(shape=self.input_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 
plugins/train/model/unbalanced.py