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

Get rid of a bit more warnings.

上级 f7136235
...@@ -89,7 +89,7 @@ class TestCorr2D(utt.InferShapeTester): ...@@ -89,7 +89,7 @@ class TestCorr2D(utt.InferShapeTester):
elif border_mode == 'valid': elif border_mode == 'valid':
padHW = numpy.array([0, 0]) padHW = numpy.array([0, 0])
elif border_mode == 'half': elif border_mode == 'half':
padHW = numpy.floor(fil_shape2d / 2) padHW = numpy.floor(fil_shape2d / 2).astype('int32')
elif isinstance(border_mode, tuple): elif isinstance(border_mode, tuple):
padHW = numpy.array(border_mode) padHW = numpy.array(border_mode)
elif isinstance(border_mode, int): elif isinstance(border_mode, int):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论