Skip to content

Commit

Permalink
Update op_pool_common.py, add missing "| None" (onnx#6421)
Browse files Browse the repository at this point in the history
for example

onnx/backend/test/case/node/averagepool.py
uses 
pads = None

### Description
<!-- - Describe your changes. -->

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->

---------

Signed-off-by: Andreas Fehlner <[email protected]>
  • Loading branch information
andife authored Oct 3, 2024
1 parent 56cf02b commit 17722ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnx/reference/ops/op_pool_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_pad_with_auto_pad(auto_pad: str, pad_shape: Sequence[int]) -> Sequence[i


def get_output_shape_explicit_padding(
pads: Sequence[int],
pads: Sequence[int] | None,
input_spatial_shape: Sequence[int],
kernel_spatial_shape: Sequence[int],
strides_spatial: Sequence[int],
Expand Down

0 comments on commit 17722ff

Please sign in to comment.