Skip to content

Commit

Permalink
Set default values for padding in NHWC pool ops
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar authored Apr 5, 2024
1 parent a318858 commit 6084f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qonnx/custom_op/general/maxpoolnhwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_nodeattr_types(self):
# https://github.com/onnx/onnx/blob/main/docs/Operators.md#MaxPool
return {
"kernel_shape": ("ints", True, []),
"pads": ("ints", True, []),
"pads": ("ints", False, [0, 0, 0, 0]),
"strides": ("ints", True, []),
"ceil_mode": ("i", False, 0),
}
Expand Down Expand Up @@ -128,7 +128,7 @@ def get_nodeattr_types(self):
# https://github.com/onnx/onnx/blob/main/docs/Operators.md#AveragePool
return {
"kernel_shape": ("ints", True, []),
"pads": ("ints", True, []),
"pads": ("ints", False, [0, 0, 0, 0]),
"strides": ("ints", True, []),
"ceil_mode": ("i", False, 0),
}
Expand Down

0 comments on commit 6084f59

Please sign in to comment.