import tensorflow as tf

            if do_norm:
                deconv = tf.layers.batch_normalization(deconv, momentum = 0.9)
            
            if activation_function == "relu":
                deconv = tf.nn.relu(deconv, name = 'relu')
            if activation_function == "leakyrelu":
                deconv = tf.nn.leaky_relu(deconv, alpha=relu_factor)
            if activation_function == "elu":
                deconv = tf.nn.elu(deconv, name = 'elu')
            
            return deconv


