import tensorflow as tf



def add_dense_layer(layer, filter_dims, act_func=tf.nn.relu, scope='dense_layer',
                    use_bn=True, bn_phaze=False, use_bias=False, dilation=[1, 1, 1, 1]):
    with tf.variable_scope(scope):
        l = layer

        if use_bn:
