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)
评论列表
文章目录