提交 418173f3 authored 作者: Frederic Bastien's avatar Frederic Bastien

Allow the default value of parameter dx,dy of ConvOp.__init__. They are set…

Allow the default value of parameter dx,dy of ConvOp.__init__. They are set explicitly to 1 by the conv() fct.
上级 c417b6f7
...@@ -316,8 +316,8 @@ class ConvOp(Op): ...@@ -316,8 +316,8 @@ class ConvOp(Op):
:param kshp_logical_top_aligned: idem :param kshp_logical_top_aligned: idem
""" """
assert isinstance(dx,int),'ConvOp.__init__ param dx must be an int' assert isinstance(dx,(int,None)),'ConvOp.__init__ param dx must be an int'
assert isinstance(dy,int),'ConvOp.__init__ param dy must be an int' assert isinstance(dy,(int,None)),'ConvOp.__init__ param dy must be an int'
all_shape = imshp is not None and kshp is not None and \ all_shape = imshp is not None and kshp is not None and \
nkern is not None and bsize is not None nkern is not None and bsize is not None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论