          assert output.dtype == "float32" and not np.any(np.isnan(output))
  
  
  _LWPARAMS = [losses.DSSIMObjective(),
               losses.GeneralizedLoss(),
               losses.GMSDLoss(**_KWARGS),
               losses.GradientLoss(),
               losses.LaplacianPyramidLoss(),
 
</s> remove              losses.GMSDLoss(),
 </s> add              losses.GMSDLoss(**_KWARGS), </s> remove     if get_backend() == "amd" and isinstance(loss_func, losses.GMSDLoss):
        pytest.skip("GMSD Loss is not currently compatible with PlaidML")
 </s> add  </s> remove         if isinstance(loss_func, losses.GMSDLoss):
            pytest.skip("GMSD Loss is not currently compatible with PlaidML")
 </s> add         if isinstance(loss_func, losses.FocalFrequencyLoss):
            pytest.skip("FocalFrequencyLoss Loss is not currently compatible with PlaidML") </s> remove         self._loss_dict = dict(gmsd=losses.GMSDLoss(),
                               l_inf_norm=losses.LInfNorm(),
                               laploss=losses.LaplacianPyramidLoss(),
                               logcosh=k_losses.logcosh,
                               ms_ssim=losses.MSSIMLoss(),
                               mae=k_losses.mean_absolute_error,
                               mse=k_losses.mean_squared_error,
                               pixel_gradient_diff=losses.GradientLoss(),
                               ssim=losses.DSSIMObjective(),
                               smooth_loss=losses.GeneralizedLoss(),)
 </s> add         self._loss_dict: Dict[str, Callable] = {}
             losses.FocalFrequencyLoss(),
          assert output.dtype == "float32" and not np.any(np.isnan(output))
  
  
  _LWPARAMS = [losses.DSSIMObjective(),
             losses.FocalFrequencyLoss(),
               losses.GeneralizedLoss(),
               losses.GMSDLoss(**_KWARGS),
               losses.GradientLoss(),
               losses.LaplacianPyramidLoss(),
keep keep keep add keep keep keep keep
 Loss updates
  - Split Loss to own package
  - Add Focal Frequency Loss (Nvidia only)
  - Enable GMSD for AMD 
tests/lib/model/losses_test.py