提交 e023c7ee authored 作者: Frederic Bastien's avatar Frederic Bastien

allow to reload old version of Images2Neibs and GpuImages2Neibs(cause problem with the buildbot)

上级 cb32d5ba
...@@ -22,6 +22,11 @@ class Images2Neibs(Op): ...@@ -22,6 +22,11 @@ class Images2Neibs(Op):
def __str__(self): def __str__(self):
return self.__class__.__name__+"{%s}"%self.mode return self.__class__.__name__+"{%s}"%self.mode
def __setstate__(self, d):
self.__dict__.update(d)
if not hasattr(self,"mode"):
self.mode = 'valid'
def make_node(self, ten4, neib_shape, neib_step=None): def make_node(self, ten4, neib_shape, neib_step=None):
""" """
:param neib_step: (dx,dy) where dx is the number of rows to skip between patch :param neib_step: (dx,dy) where dx is the number of rows to skip between patch
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论