          dfaker: https://github.com/dfaker/df
          shoanlu GAN: https://github.com/shaoanlu/faceswap-GAN"""
  
  import logging
  import tensorflow as tf
  import keras.backend as K
  
  from keras.layers import (add, Add, BatchNormalization, concatenate, Lambda, regularizers,
                            Permute, Reshape, SeparableConv2D, Softmax, UpSampling2D)
  from keras.layers.advanced_activations import LeakyReLU
  from keras.layers.convolutional import Conv2D
 
</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 """ Neural Network Blocks for faceswap.py
    Blocks from:
        the original https://www.reddit.com/r/deepfakes/ code sample + contribs
        dfaker: https://github.com/dfaker/df
        shoanlu GAN: https://github.com/shaoanlu/faceswap-GAN"""
 </s> add """ Neural Network Blocks for faceswap.py. """ </s> remove from keras.layers import Lambda, concatenate
 </s> add  </s> remove from tensorflow.distributions import Beta
 </s> add  </s> remove """ Custom Loss Functions for faceswap.py
    Losses from:
        keras.contrib
        dfaker: https://github.com/dfaker/df
        shoanlu GAN: https://github.com/shaoanlu/faceswap-GAN"""
 </s> add """ Custom Loss Functions for faceswap.py """
          dfaker: https://github.com/dfaker/df
          shoanlu GAN: https://github.com/shaoanlu/faceswap-GAN"""
  
  import logging


  
  from keras.layers import (add, Add, BatchNormalization, concatenate, Lambda, regularizers,
                            Permute, Reshape, SeparableConv2D, Softmax, UpSampling2D)
  from keras.layers.advanced_activations import LeakyReLU
  from keras.layers.convolutional import Conv2D
keep keep keep keep replace 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/nn_blocks.py