  import keras.backend as K
  from keras.layers import Lambda, concatenate
  import numpy as np
  import tensorflow as tf
  from tensorflow.distributions import Beta
  
  from .normalization import InstanceNormalization
  if K.backend() == "plaidml.keras.backend":
      from plaidml.op import extract_image_patches
  else:
 
</s> remove from keras.layers import Lambda, concatenate
 </s> add  </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 from keras.layers import (add, Add, BatchNormalization, concatenate, Lambda, regularizers,
                          Permute, Reshape, SeparableConv2D, Softmax, UpSampling2D)
 </s> add from keras.layers import Add, SeparableConv2D </s> remove import tensorflow as tf
import keras.backend as K
 </s> add  </s> remove 
 </s> add     from tensorflow import pad
  import keras.backend as K
  from keras.layers import Lambda, concatenate
  import numpy as np
  import tensorflow as tf

  
  from .normalization import InstanceNormalization
  if K.backend() == "plaidml.keras.backend":
      from plaidml.op import extract_image_patches
  else:
keep keep keep keep replace 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