[Relay][Frontend][TFlite] Add parses support for SLICE (#4502)
authorIna Dobreva <55383260+inadob@users.noreply.github.com>
Fri, 10 Jan 2020 22:57:16 +0000 (22:57 +0000)
committerTianqi Chen <tqchen@users.noreply.github.com>
Fri, 10 Jan 2020 22:57:16 +0000 (14:57 -0800)
commit2327bb9f6b7cd156a573a3ea50da075d1e07923a
tree242735fed54b5b70dd3c1c3aa7be15e33370f6c9
parent74d5cf46a81af9d43ab1aa7cb191cdc5d39080d6
[Relay][Frontend][TFlite] Add parses support for SLICE (#4502)

* [Relay][Frontend][TFlite] Add parses support for SLICE

* TFlite 1.13: convertor gives nonsense output when size[i]==-1
* TF parser: SLICE need fixing for size[i]==-1 -> gives wrong output
  bcs of indices

* Set end[i] = input_tensor_shape[i] as suggested in PR review

* Add another test to cover size=-1 case
python/tvm/relay/frontend/tflite.py
tests/python/frontend/tflite/test_forward.py