Skip to content

Commit

Permalink
Added align_corners for Resize OPSET 11
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Markou <nikolasmarkou@gmail.com>
  • Loading branch information
NikolasMarkou committed Oct 23, 2020
1 parent de21e8a commit cdf67c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tf2onnx/onnx_opset/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@ def version_11(cls, ctx, node, **kwargs):
concat_shape.output[0]
]
transformation_mode = "asymmetric"
if "align_corners" in node.attr and node.attr["align_corners"].i:
transformation_mode = "align_corners"
if "half_pixel_centers" in node.attr and node.attr["half_pixel_centers"].i:
transformation_mode = "half_pixel"
resize = ctx.make_node("Resize", resize_inputs,
Expand Down

0 comments on commit cdf67c0

Please sign in to comment.