  
  from keras.engine import InputSpec, Layer
  from keras.utils import conv_utils
  from keras.utils.generic_utils import get_custom_objects
  from keras import initializers
  from keras.layers.pooling import _GlobalPooling2D
  
  if K.backend() == "plaidml.keras.backend":
      from lib.plaidml_utils import pad
  else:
 
</s> remove if K.backend() == "plaidml.keras.backend":
 </s> add from lib.utils import get_backend

if get_backend() == "amd": </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 from tensorflow.distributions import Beta
 </s> add 
  
  from keras.engine import InputSpec, Layer
  from keras.utils import conv_utils
  from keras.utils.generic_utils import get_custom_objects

  from keras.layers.pooling import _GlobalPooling2D
  
  if K.backend() == "plaidml.keras.backend":
      from lib.plaidml_utils import pad
  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/layers.py