Skip to content

Commit

Permalink
fix ceiling-mode defaults for pool operators (AvgPool, MaxPool) (onnx…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitra authored May 4, 2020
1 parent 1e7d1a3 commit 9460481
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def convert_pooling(scope, operator, container):
op_version = 8
else:
op_version = 10
attrs['ceil_mode'] = 1
attrs['ceil_mode'] = 0
elif params.type == Params.AVERAGE:
op_type = 'AveragePool'
if container.target_opset < 7:
Expand All @@ -195,7 +195,7 @@ def convert_pooling(scope, operator, container):
op_version = 7
else:
op_version = 10
attrs['ceil_mode'] = 1
attrs['ceil_mode'] = 0
elif params.type == Params.L2:
op_type = 'LpPool'
attrs['p'] = 2
Expand Down

0 comments on commit 9460481

Please sign in to comment.