2D linear upsample with align_corners=False
doesn't match PyTorch.
#8897
Labels
align_corners=False
doesn't match PyTorch.
#8897
🐛 Bug
Running a 2D linear upsample yields in different results when comparing with PyTorch (both CPU and CUDA). That, however, only happens when
align_corners=False
.PyTorch/XLA result seems to align with tensorflow (makes sense, since we took it from there), and OpenCV. However, PyTorch does seem to be the different one here.
Environment
Additional context
Found this when lowering the backwards (issue #8754). I tried taking the lowering from the same place and it looks like the gradient also matches only when
align_corners=True
.This might not affect XLA:TPU, since it uses a custom lowering.
The text was updated successfully, but these errors were encountered: