提交 14b35704 authored 作者: Frederic's avatar Frederic

Use the documented way that numpy.nditer work. numpy 1.7.0b2 raise a ValueError…

Use the documented way that numpy.nditer work. numpy 1.7.0b2 raise a ValueError with the not documented behavior.
上级 85f9247a
......@@ -30,7 +30,7 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
out_shp.append(input.shape[-1] / ds[1] + yi)
output_val = numpy.zeros(out_shp)
for k in numpy.ndindex(input.shape[:-2]):
for k in numpy.ndindex(*input.shape[:-2]):
for i in range(output_val.shape[-2]):
ii = i * ds[0]
for j in range(output_val.shape[-1]):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论