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

Commits on Jan 18, 2021

  1. 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 <[email protected]>
    QMassoz committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    048cdfb View commit details
    Browse the repository at this point in the history