          Default ``True``
      kwargs: dict
          Any keyword arguments to supply to the loss function at initialization.
      """
      function: Union[Callable[[tf.Tensor, tf.Tensor], tf.Tensor], Any] = k_losses.mae
      init: bool = True
      kwargs: Dict[str, Any] = field(default_factory=dict)
  
  
  class Loss():
 
</s> remove     kwargs: Dict[str, Any] = field(default_factory=dict)
 </s> add     kwargs: T.Dict[str, T.Any] = field(default_factory=dict) </s> remove         kwargs: Dict[str, Union[str, int]] = {}
 </s> add         kwargs: T.Dict[str, T.Union[str, int]] = {} </s> remove     def _get_function(self, name: str) -> Callable[[tf.Tensor, tf.Tensor], tf.Tensor]:
 </s> add     def _get_function(self, name: str) -> T.Callable[[tf.Tensor, tf.Tensor], tf.Tensor]: </s> remove         logger.verbose("Using %s optimizer", optimizer.title())  # type:ignore
 </s> add         logger.verbose("Using %s optimizer", optimizer.title())  # type:ignore[attr-defined] </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]
    function: T.Union[T.Callable[[tf.Tensor, tf.Tensor], tf.Tensor], T.Any] = k_losses.mae
          Default ``True``
      kwargs: dict
          Any keyword arguments to supply to the loss function at initialization.
      """
    function: T.Union[T.Callable[[tf.Tensor, tf.Tensor], tf.Tensor], T.Any] = k_losses.mae
      init: bool = True
      kwargs: Dict[str, Any] = field(default_factory=dict)
  
  
  class Loss():
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/_base/settings.py