未验证 提交 1735ed32 编写于 作者: R ruri 提交者: GitHub

fix im2sequence padding bug, test=develop (#17660)

fix im2sequence padding bug
上级 0d561ef4
...@@ -6099,7 +6099,7 @@ def im2sequence(input, ...@@ -6099,7 +6099,7 @@ def im2sequence(input,
padding.append(padding[0]) padding.append(padding[0])
padding.append(padding[1]) padding.append(padding[1])
inputs = {"X": input} inputs = {"X": input}
attrs = {"kernels": filter_size, "strides": stride, "padding": padding} attrs = {"kernels": filter_size, "strides": stride, "paddings": padding}
if input_image_size: if input_image_size:
if isinstance(out_stride, int): if isinstance(out_stride, int):
out_stride = [out_stride, out_stride] out_stride = [out_stride, out_stride]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册