conv1d.py 文件源码

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

项目:DBQA-KBQA 作者: Lucien-qiang 项目源码 文件源码
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_2D_numpy)
    # self.numba_fct = convolve1d_2D_numpy
    return super(Convolve1d, self).make_thunk(
        node, storage_map, compute_map, no_recycling)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号