def merge_block(conv, skip, mode='concat'): return merge([UpSampling2D(size=(2, 2))(conv), skip], mode=mode, concat_axis=1)