spatial_up_sampling_nearest.py 文件源码

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

项目:PyFunt 作者: dnlcrl 项目源码 文件源码
def tile_array(a, b1, b2):
    r, c = a.shape
    rs, cs = a.strides
    x = as_strided(a, (r, b1, c, b2), (rs, 0, cs, 0))
    return x.reshape(r*b1, c*b2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号