Skip to content

Commit 5b1b305

Browse files
authored
Merge pull request #161 from syoyo/unpooling-err-msg
Unpooling err msg
2 parents b7a97cc + d313f91 commit 5b1b305

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

onnx_chainer/functions/pooling.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ def convert_Unpooling2D(func, opset_version, input_names, num_outputs,
183183
'for Unpooling2D')
184184
# This one would require an extra 1x1 MaxPool.
185185
if stride != ksize:
186-
raise RuntimeError('ONNX-chainer does not support `stride!=1` '
187-
'for Unpooling2D')
186+
raise RuntimeError('ONNX-chainer does not support `stride!=ksize` '
187+
'for Unpooling2D: stride={} ksize={}'.format(
188+
stride, ksize))
188189
scales = [1.0, 1.0, float(func.kh), float(func.kw)]
189190
if opset_version == 7:
190191
return onnx_helper.make_node('Upsample', input_names, num_outputs,

0 commit comments

Comments
 (0)