提交 2ba1d48c authored 作者: Frederic's avatar Frederic 提交者: Frederic Bastien

Don't crash when generating the error for some type of error

上级 a5c6a13a
...@@ -528,7 +528,7 @@ class ConvOp(OpenMPOp): ...@@ -528,7 +528,7 @@ class ConvOp(OpenMPOp):
self.out_mode = output_mode self.out_mode = output_mode
if self.out_mode not in ["valid", "full"]: if self.out_mode not in ["valid", "full"]:
raise Exception("Mode %s not implemented" % self.out_mode) raise Exception("Mode %s not implemented" % str(self.out_mode))
if any((shp is not None) and (shp <= 0) for shp in self.outshp): if any((shp is not None) and (shp <= 0) for shp in self.outshp):
raise Exception("Bad size for the output shape. Verify that [post-" raise Exception("Bad size for the output shape. Verify that [post-"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论