From e75e287f246c6fe7e2e54e0f2a73f15366cdad57 Mon Sep 17 00:00:00 2001 From: Chun-Wei Chen Date: Fri, 4 Sep 2020 16:37:11 -0700 Subject: [PATCH] fix description for auto_pads == SAME_UPPER --- onnx/defs/nn/defs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnx/defs/nn/defs.cc b/onnx/defs/nn/defs.cc index 158231d0ac3..d2b1e798fb3 100644 --- a/onnx/defs/nn/defs.cc +++ b/onnx/defs/nn/defs.cc @@ -1304,7 +1304,7 @@ If the pads parameter is provided the shape of the output is calculated via the output_shape can also be explicitly specified in which case pads values are auto generated using these equations: total_padding[i] = stride[i] * (input_size[i] - 1) + output_padding[i] + ((kernel_shape[i] - 1) * dilations[i] + 1) - output_shape[i] - If (auto_pads != SAME_UPPER): pads[start_i] = total_padding[i]/2; pads[end_i] = total_padding[i] - (total_padding[i]/2) + If (auto_pads == SAME_UPPER): pads[start_i] = total_padding[i]/2; pads[end_i] = total_padding[i] - (total_padding[i]/2) Else: pads[start_i] = total_padding[i] - (total_padding[i]/2); pads[end_i] = (total_padding[i]/2). )DOC";