Skip to content

Commit

Permalink
fix description for auto_pads == SAME_UPPER
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwchen committed Sep 4, 2020
1 parent 3cf1f0d commit e75e287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnx/defs/nn/defs.cc
Expand Up @@ -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";
Expand Down

0 comments on commit e75e287

Please sign in to comment.