pixel_rnn.py 文件源码

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

项目:pixel_rnn 作者: igul222 项目源码 文件源码
def Skew(inputs):
    """
    input.shape: (batch size, HEIGHT, WIDTH, dim)
    """
    buffer = T.zeros(
        (inputs.shape[0], inputs.shape[1], 2*inputs.shape[2] - 1, inputs.shape[3]),
        theano.config.floatX
    )

    for i in xrange(HEIGHT):
        buffer = T.inc_subtensor(buffer[:, i, i:i+WIDTH, :], inputs[:,i,:,:])

    return buffer
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号