Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update builtin_op_importers.cpp #628

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

QMassoz
Copy link

@QMassoz QMassoz commented Jan 18, 2021

Pytorch exports linear interpolation with align_corners=True using 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"

@CLAassistant
Copy link

CLAassistant commented Jan 18, 2021

CLA assistant check
All committers have signed the CLA.

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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants