提交 3d21fe4c authored 作者: Francesco Visin's avatar Francesco Visin

Fix unhashable type if shapes are list

Fix BaseAbstractConv2d to convert kernel_shape and image_shape to tuples
上级 a7cd6648
...@@ -155,8 +155,8 @@ class BaseAbstractConv2d(Op): ...@@ -155,8 +155,8 @@ class BaseAbstractConv2d(Op):
'"valid", "full", "half", an integer or a pair of' '"valid", "full", "half", an integer or a pair of'
' integers'.format(border_mode)) ' integers'.format(border_mode))
self.imshp = imshp self.imshp = tuple(imshp) if imshp else None
self.kshp = kshp self.kshp = tuple(kshp) if kshp else None
self.border_mode = border_mode self.border_mode = border_mode
self.filter_flip = filter_flip self.filter_flip = filter_flip
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论