提交 a056ae81 authored 作者: affanv14's avatar affanv14

remove values which dont need to be set in setstate

上级 a47f91a6
...@@ -536,12 +536,6 @@ class BaseGpuCorrMM(CGpuKernelBase): ...@@ -536,12 +536,6 @@ class BaseGpuCorrMM(CGpuKernelBase):
def __setstate__(self, d): def __setstate__(self, d):
self.__dict__.update(d) self.__dict__.update(d)
if not hasattr(self, 'border_mode'):
self.border_mode = "valid"
if not hasattr(self, 'subsample'):
self.subsample = (1, 1)
if not hasattr(self, 'filter_dilation'):
self.filter_dilation = (1, 1)
if not hasattr(self, 'num_groups'): if not hasattr(self, 'num_groups'):
self.num_groups = 1 self.num_groups = 1
......
...@@ -147,12 +147,6 @@ class BaseCorrMM(gof.OpenMPOp): ...@@ -147,12 +147,6 @@ class BaseCorrMM(gof.OpenMPOp):
def __setstate__(self, d): def __setstate__(self, d):
self.__dict__.update(d) self.__dict__.update(d)
if not hasattr(self, 'border_mode'):
self.border_mode = "valid"
if not hasattr(self, 'subsample'):
self.subsample = (1, 1)
if not hasattr(self, 'filter_dilation'):
self.filter_dilation = (1, 1)
if not hasattr(self, 'num_groups'): if not hasattr(self, 'num_groups'):
self.num_groups = 1 self.num_groups = 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论