model.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:DeepWorks 作者: daigo0927 项目源码 文件源码
def up_block(block_fn, filters):
    def f(inputs, down):
        inputs_ = tcl.conv2d_transpose(down, # double size of 'down'
                                       num_outputs = inputs.shape.as_list()[3],
                                       kernel_size = (2, 2),
                                       stride = (2, 2),
                                       padding = 'SAME')
        x = tf.concat([inputs, inputs_], axis = 3)
        x = block_fn(filters)(x)
        x = block_fn(filters)(x)
        return x # same size of 'inputs'
    return f
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号