Skip to content

Commit cdf67c0

Browse files
committed
Added align_corners for Resize OPSET 11
Signed-off-by: Nikolas Markou <[email protected]>
1 parent de21e8a commit cdf67c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tf2onnx/onnx_opset/nn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,8 @@ def version_11(cls, ctx, node, **kwargs):
900900
concat_shape.output[0]
901901
]
902902
transformation_mode = "asymmetric"
903+
if "align_corners" in node.attr and node.attr["align_corners"].i:
904+
transformation_mode = "align_corners"
903905
if "half_pixel_centers" in node.attr and node.attr["half_pixel_centers"].i:
904906
transformation_mode = "half_pixel"
905907
resize = ctx.make_node("Resize", resize_inputs,

0 commit comments

Comments
 (0)