conv1d.py 文件源码

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

项目:DEEP-CLICK-MODEL 作者: THUIR 项目源码 文件源码
def make_thunk(self, node, storage_map, compute_map, no_recycling):
        in1_type = getattr(numba, node.inputs[0].dtype)
        in2_type = getattr(numba, node.inputs[1].dtype)
        out_type = getattr(numba, node.outputs[0].dtype)
        self.numba_fct = numba.jit(out_type[:,:,:,:](in1_type[:,:,:,:],
                                   in2_type[:,:,:,:]))(convolve1d_4D_numpy)
        # self.numba_fct = convolve1d_4D_numpy
        return super(Convolve1d_4D, self).make_thunk(
            node, storage_map, compute_map, no_recycling)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号