import tensorflow as tf

        out += aux

    out = activation(out)

    if dropout > 0:
        out = tf.layers.dropout(out, rate=dropout, training=training)

    if sum(dim[2]) > 2:
        out = deconv2d(out, [2*dim[0], dim[1], dim[2]], scope="%s_conv_out"%scope, training=training, ema=ema, init=init)
    else:
