                                 f"{self._model.name}_logs",
                                 f"session_{self._model.state.session_id}")
          tensorboard = tf.keras.callbacks.TensorBoard(log_dir=log_dir,
                                                       histogram_freq=0,  # Must be 0 or hangs
                                                       write_graph=get_backend() != "amd",
                                                       write_images=False,
                                                       update_freq="batch",
                                                       profile_batch=0,
                                                       embeddings_freq=0,
                                                       embeddings_metadata=None)
 
</s> remove         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)
 </s> add         self.data_format = conv_utils.normalize_data_format(data_format) </s> remove         self.backend: Optional[Literal["nvidia", "amd", "apple_silicon",
 </s> add         self.backend: Optional[Literal["nvidia", "apple_silicon", </s> remove     _backends = (("nvidia", "amd", "apple_silicon", "directml", "rocm", "cpu"))
 </s> add     _backends = (("nvidia", "apple_silicon", "directml", "rocm", "cpu")) </s> remove             retval = (os.path.basename(prefix) == "envs")
 </s> add             retval = os.path.basename(prefix) == "envs" </s> remove             item: Union[Literal["EOF"], ConvertItem] = self._in_queue.get()
 </s> add             item: T.Union[Literal["EOF"], ConvertItem] = self._in_queue.get()
                                                     write_graph=True,
                                 f"{self._model.name}_logs",
                                 f"session_{self._model.state.session_id}")
          tensorboard = tf.keras.callbacks.TensorBoard(log_dir=log_dir,
                                                       histogram_freq=0,  # Must be 0 or hangs
                                                     write_graph=True,
                                                       write_images=False,
                                                       update_freq="batch",
                                                       profile_batch=0,
                                                       embeddings_freq=0,
                                                       embeddings_metadata=None)
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/trainer/_base.py