提交 071e7fc9 authored 作者: affanv14's avatar affanv14

add __setstate__ function to gpucorr3dmm

上级 f0ba91f2
......@@ -1112,6 +1112,11 @@ class BaseGpuCorr3dMM(CGpuKernelBase):
str(self.filter_dilation),
str(self.num_groups))
def __setstate__(self, d):
self.__dict__.update(d)
if not hasattr(self, 'num_groups'):
self.num_groups = 1
def flops(self, inp, outp):
"""
Useful with the hack in profilemode to print the MFlops.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论