[TOPI, Relay] Add half_pixel option to Resize op (#4610)
authormasahi <masahi129@gmail.com>
Fri, 3 Jan 2020 00:14:14 +0000 (09:14 +0900)
committerYizhi Liu <liuyizhi@apache.org>
Fri, 3 Jan 2020 00:14:14 +0000 (16:14 -0800)
commite8a2c9b3cc7c0fd0c799499b58c7bd1cb18d0ca1
tree50d23445edca37f90a157750a251015aee235d1d
parent203ca7a08ea790f3b344d5895b5713a2b9fd069c
[TOPI, Relay] Add half_pixel option to Resize op (#4610)

* add onnx resize converter

* update frontends

* updating topi

* adding onnx resize tests

* fixed NHWC test by casting size dtype to int32

* fix tests

* fix lint

* update existing test cases

* fix tensorflow frontend

* fix lint

* remove NHWC stuff

* update topi resize test for half_pixel

* update doc

* fix doc

* remove onnx resize bits
15 files changed:
include/tvm/relay/attrs/image.h
python/tvm/relay/frontend/mxnet.py
python/tvm/relay/frontend/onnx.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/frontend/tflite.py
python/tvm/relay/op/image/_image.py
python/tvm/relay/op/image/image.py
src/relay/op/image/resize.cc
tests/python/frontend/onnx/test_forward.py
tests/python/relay/test_op_level5.py
topi/python/topi/image/resize.py
topi/python/topi/nn/upsampling.py
topi/python/topi/testing/bilinear_resize_python.py
topi/tests/python/test_topi_resize.py
topi/tests/python/test_topi_upsampling.py