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

make the GpuConv op differ by its verbose option

上级 c4ab09e9
...@@ -162,16 +162,19 @@ class GpuConv(Op): ...@@ -162,16 +162,19 @@ class GpuConv(Op):
and self.logical_img_hw == other.logical_img_hw \ and self.logical_img_hw == other.logical_img_hw \
and self.logical_kern_hw == other.logical_kern_hw \ and self.logical_kern_hw == other.logical_kern_hw \
and self.logical_kern_align_top == other.logical_kern_align_top \ and self.logical_kern_align_top == other.logical_kern_align_top \
and self.version == other.version and self.version == other.version \
and self.verbose == other.verbose
def __hash__(self): def __hash__(self):
# don't use hash(self.version) as hash(-1)==-2 and hash(-2)==-2 in python!
return hash(type(self)) \ return hash(type(self)) \
^ hash(self.border_mode) \ ^ hash(self.border_mode) \
^ hash(self.subsample) \ ^ hash(self.subsample) \
^ hash(self.logical_img_hw) \ ^ hash(self.logical_img_hw) \
^ hash(self.logical_kern_hw) \ ^ hash(self.logical_kern_hw) \
^ hash(self.logical_kern_align_top) \ ^ hash(self.logical_kern_align_top) \
^ self.version# don't use hash as hash(-1)==-2 and hash(-2)==-2 in python! ^ self.version \
^ self.verbose
def __str__(self): def __str__(self):
return '%s{%s, %s, %s, %s, %s}' %(self.__class__.__name__, return '%s{%s, %s, %s, %s, %s}' %(self.__class__.__name__,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论