Commit 048cdfb
committed
Update builtin_op_importers.cpp
Pytorch exports linear interpolation with align_corners=True with coordinate_transformation_mode = "align_corners" and not "asymmetric".
See https://github.com/pytorch/pytorch/blob/master/torch/onnx/symbolic_opset11.py line 214-215:
coordinate_transformation_mode = "asymmetric" if interpolate_mode == "nearest" \
else "align_corners" if align_corners else "pytorch_half_pixel"
Signed-off-by: QMassoz <quentin.massoz@gmail.com>1 parent 8b5328f commit 048cdfb
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | | - | |
| 2618 | + | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
| |||
2624 | 2624 | | |
2625 | 2625 | | |
2626 | 2626 | | |
2627 | | - | |
2628 | | - | |
| 2627 | + | |
| 2628 | + | |
2629 | 2629 | | |
2630 | 2630 | | |
2631 | 2631 | | |
| |||
0 commit comments