Conv1DLayer.py 文件源码

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

项目:deep-motion-analysis 作者: Brimborough 项目源码 文件源码
def __call__(self, input):

        s, f = self.input_shape, self.filter_shape
        zeros = T.basic.zeros((s[0], s[1], (f[2]-1)//2), dtype=theano.config.floatX)
        input = T.concatenate([zeros, input, zeros], axis=2)
        input = conv.conv2d(
            input=input.dimshuffle(0,1,2,'x'),
            filters=self.W.dimshuffle(0,1,2,'x'),
            border_mode='valid')[:,:,:,0]

        return input + self.b.dimshuffle('x', 0, 'x')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号