提交 77417690 authored 作者: Frederic Bastien's avatar Frederic Bastien

Make test use less memory

上级 26454be6
...@@ -1451,7 +1451,7 @@ def test_dnn_batchnorm_train(): ...@@ -1451,7 +1451,7 @@ def test_dnn_batchnorm_train():
bn.AbstractBatchNormTrainGrad)) for n bn.AbstractBatchNormTrainGrad)) for n
in f_abstract.maker.fgraph.toposort()]) in f_abstract.maker.fgraph.toposort()])
# run # run
for data_shape in ((5, 10, 30, 40, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)): for data_shape in ((5, 10, 30, 4, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)):
data_shape = data_shape[:ndim] data_shape = data_shape[:ndim]
param_shape = tuple(1 if d in axes else s param_shape = tuple(1 if d in axes else s
for d, s in enumerate(data_shape)) for d, s in enumerate(data_shape))
...@@ -1666,7 +1666,7 @@ def test_batchnorm_inference(): ...@@ -1666,7 +1666,7 @@ def test_batchnorm_inference():
bn.AbstractBatchNormTrainGrad)) for n bn.AbstractBatchNormTrainGrad)) for n
in f_abstract.maker.fgraph.toposort()]) in f_abstract.maker.fgraph.toposort()])
# run # run
for data_shape in ((10, 20, 30, 40, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)): for data_shape in ((10, 2, 30, 4, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)):
data_shape = data_shape[:ndim] data_shape = data_shape[:ndim]
param_shape = tuple(1 if d in axes else s param_shape = tuple(1 if d in axes else s
for d, s in enumerate(data_shape)) for d, s in enumerate(data_shape))
......
...@@ -801,7 +801,7 @@ def test_batchnorm_train(): ...@@ -801,7 +801,7 @@ def test_batchnorm_train():
bn.AbstractBatchNormTrainGrad)) for n bn.AbstractBatchNormTrainGrad)) for n
in f_abstract.maker.fgraph.toposort()]) in f_abstract.maker.fgraph.toposort()])
# run # run
for data_shape in ((5, 10, 30, 40, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)): for data_shape in ((5, 2, 30, 4, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)):
data_shape = data_shape[:ndim] data_shape = data_shape[:ndim]
param_shape = tuple(1 if d in axes else s param_shape = tuple(1 if d in axes else s
for d, s in enumerate(data_shape)) for d, s in enumerate(data_shape))
...@@ -980,7 +980,7 @@ def test_batchnorm_inference(): ...@@ -980,7 +980,7 @@ def test_batchnorm_inference():
bn.AbstractBatchNormTrainGrad)) for n bn.AbstractBatchNormTrainGrad)) for n
in f_abstract.maker.fgraph.toposort()]) in f_abstract.maker.fgraph.toposort()])
# run # run
for data_shape in ((10, 20, 30, 40, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)): for data_shape in ((10, 2, 30, 4, 10, 5), (4, 3, 1, 1, 1, 1), (1, 1, 5, 5, 5, 5)):
data_shape = data_shape[:ndim] data_shape = data_shape[:ndim]
param_shape = tuple(1 if d in axes else s param_shape = tuple(1 if d in axes else s
for d, s in enumerate(data_shape)) for d, s in enumerate(data_shape))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论