  from lib.utils import get_backend
  
  if get_backend() == "amd":
      from plaidml.op import extract_image_patches
  else:
      from tensorflow import extract_image_patches  # pylint: disable=ungrouped-imports
      from tensorflow import pad
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 
</s> remove 
 </s> add     from tensorflow import pad </s> remove from .normalization import InstanceNormalization
if K.backend() == "plaidml.keras.backend":
 </s> add from lib.utils import get_backend

if get_backend() == "amd": </s> remove if K.backend() == "plaidml.keras.backend":
 </s> add from lib.utils import get_backend

if get_backend() == "amd": </s> remove from tensorflow.distributions import Beta
 </s> add  </s> remove from .layers import PixelShuffler, SubPixelUpscaling, ReflectionPadding2D, Scale
from .normalization import GroupNormalization, InstanceNormalization
 </s> add from .layers import PixelShuffler, SubPixelUpscaling, ReflectionPadding2D
from .normalization import InstanceNormalization
    from lib.plaidml_utils import pad
  from lib.utils import get_backend
  
  if get_backend() == "amd":
      from plaidml.op import extract_image_patches
    from lib.plaidml_utils import pad
  else:
      from tensorflow import extract_image_patches  # pylint: disable=ungrouped-imports
      from tensorflow import pad
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
keep keep keep add keep keep keep keep keep
 Simple backend unit tests (#1020)

* Add simple backend tests for lib.model
* Document lib.model
* Fix GMSD Loss for AMD
* Remove obsolete code from lib.model 
lib/model/losses.py