提交 b5044dd3 authored 作者: James Bergstra's avatar James Bergstra

short-circuited test_valid to avoid segmentation fault

上级 ae6a445d
...@@ -225,6 +225,7 @@ def get_shapes2(scales_img=(1,1), scales_kern=(1,1), subsample=(1,1), img_stride ...@@ -225,6 +225,7 @@ def get_shapes2(scales_img=(1,1), scales_kern=(1,1), subsample=(1,1), img_stride
return shapes return shapes
def test_valid(): def test_valid():
raise Exception('One of the modes here causes a segmentation fault!')
# img shape, kern shape, subsample shape # img shape, kern shape, subsample shape
shapes = get_basic_shapes() shapes = get_basic_shapes()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论