提交 61b9d4e7 authored 作者: Frederic Bastien's avatar Frederic Bastien

add in the str representation of GpuConv the value of imshp and kshp

as they make a difference in the hash. They don't change the generated c code for now. This is a follow up from James code-review comment.
上级 49baa66c
......@@ -335,12 +335,14 @@ class GpuConv(Op):
^ hash(self.imshp)
def __str__(self):
return '%s{%s, %s, %s, %s, %s}' %(self.__class__.__name__,
return '%s{%s, %s, %s, %s, %s, %s, %s}' %(self.__class__.__name__,
self.border_mode,
str(self.subsample),
str(self.logical_img_hw),
str(self.logical_kern_hw),
str(self.logical_kern_align_top))
str(self.logical_kern_align_top),
str(self.imshp),
str(self.kshp))
def make_node(self, img, kern):
if img.type.ndim != 4:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论