Skip to content

Commit 57ccfb3

Browse files
authored
Merge pull request #1144 from NikolasMarkou/resize_align_corners_attribute
Resize align corners attribute
2 parents de21e8a + cdf67c0 commit 57ccfb3

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)