          monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu")  # We'll test AMD separately
  
          event_parse = event_parser_instance
          event_parse._parse_outputs = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._add_amd_loss_labels = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._process_event = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._cache.cache_data = cast(MagicMock, mocker.MagicMock())  # type:ignore
  
          # keras model
          monkeypatch.setattr(event_parse,
 
</s> remove         monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu")  # We'll test AMD separately
 </s> add         monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu") </s> remove         predicted: List[np.ndarray] = inbound if isinstance(inbound, list) else [inbound]
 </s> add         predicted: T.List[np.ndarray] = inbound if isinstance(inbound, list) else [inbound] </s> remove         retval = np.stack([cast(np.ndarray, feed_face.face)[..., :3]
 </s> add         retval = np.stack([T.cast(np.ndarray, feed_face.face)[..., :3] </s> remove         self._optimizer: Callable = optimizer_info[0]
        self._kwargs: Dict[str, Any] = optimizer_info[1]
 </s> add         self._optimizer: T.Callable = optimizer_info[0]
        self._kwargs: T.Dict[str, T.Any] = optimizer_info[1] </s> remove             logger.verbose("Hiding GPUs from Tensorflow")  # type:ignore
 </s> add             logger.verbose("Hiding GPUs from Tensorflow")  # type:ignore[attr-defined]
          monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu")  # We'll test AMD separately
  
          event_parse = event_parser_instance
          event_parse._parse_outputs = cast(MagicMock, mocker.MagicMock())  # type:ignore

          event_parse._process_event = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._cache.cache_data = cast(MagicMock, mocker.MagicMock())  # type:ignore
  
          # keras model
          monkeypatch.setattr(event_parse,
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 
tests/lib/gui/stats/event_reader_test.py