Pytorch's grid_sample() supports various interpolation options:
(1) data dimension: 2D / 3D
(2) interpolation method: nearest / bilinear / bicubic
(3) padding_mode: zeros / border / reflection
(4) align_corners: True / False
However, TVM only supports a part of above options:
(1) data dimension: 2D
(2) interpolation method: bilinear
(3) padding_mode: zeros / border
(4) align_corners: True
This commit completes the options not supported by TVM, and keeps existing
grid_sample of onnx/pytorch uninfluenced.
Co-authored-by: shukun.net
* [relay] Fix stack overflow in device_planner observed on windows due to recursive function calls.
* Revert "[relay] Fix stack overflow in device_planner observed on windows due to recursive function calls."
This reverts commit 70581364771e2415b37b202a9fa6a937f275cfc6.
* [PyTorch] Add grid_sample with zeros and border padding mode for PyTorch.