提交 a95f8af1 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix deprecation warning about using non-integers.

上级 aab3f35f
...@@ -35,8 +35,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -35,8 +35,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
if input.shape[-1] % ds[1]: if input.shape[-1] % ds[1]:
yi += 1 yi += 1
out_shp = list(input.shape[:-2]) out_shp = list(input.shape[:-2])
out_shp.append(input.shape[-2] / ds[0] + xi) out_shp.append(input.shape[-2] // ds[0] + xi)
out_shp.append(input.shape[-1] / ds[1] + yi) out_shp.append(input.shape[-1] // ds[1] + yi)
output_val = numpy.zeros(out_shp) output_val = numpy.zeros(out_shp)
func = numpy.max func = numpy.max
if mode == 'sum': if mode == 'sum':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论