custom.py 文件源码

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

项目:spatial-reasoning 作者: JannerM 项目源码 文件源码
def forward(self, input, kernel):
        self.weight = Parameter(kernel.data)
        # print 'weight: ', self.weight.size()
        # print 'bias: ', self.bias.size()
        # print 'forward:', type(input.data), type(self.weight.data)
        # print 'forward: ', input.size(), self.weight.size()
        return F.conv2d(input, kernel, self.bias, self.stride,
                        self.padding, self.dilation, self.groups)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号