[TOPI][Relay][TensorFlow] Add OneHot operator (#3781)
authorJon Soifer <soiferj@gmail.com>
Thu, 22 Aug 2019 20:45:45 +0000 (13:45 -0700)
committerHaichen Shen <shenhaichen@gmail.com>
Thu, 22 Aug 2019 20:45:45 +0000 (13:45 -0700)
commit554df2118931cede5c0783c5a41d4da0be46ffe6
treee2d4b3ceff7873dea22be0943df1d2a7837cd2dc
parent7264cb6a5996af874819f03cf27aca3b5ad48814
[TOPI][Relay][TensorFlow] Add OneHot operator (#3781)

* Add one-hot to Relay

* topi implementation

* Working

* add topi test

* Add TF test

* Fix check

* fix linting issues

* fix documentation

* Fix documentation

* Add support for on_value, off_value, axis, dtype

* Add full support for axis

* Fix compute and update test_forward

* Move on_value and off_value to inputs

* Add topi test

* Update tests

* Update docs

* Fix style

* re-enable tests

* Add one_hot to mxnet converter
17 files changed:
docs/api/python/topi.rst
docs/langref/relay_op.rst
include/tvm/relay/attrs/transform.h
python/tvm/relay/frontend/mxnet.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/op/_transform.py
python/tvm/relay/op/transform.py
src/relay/op/tensor/transform.cc
tests/python/frontend/mxnet/test_forward.py
tests/python/frontend/tensorflow/test_forward.py
tests/python/relay/test_op_level10.py
topi/include/topi/transform.h
topi/python/topi/testing/__init__.py
topi/python/topi/testing/one_hot.py [new file with mode: 0644]
topi/python/topi/transform.py
topi/src/topi.cc
topi/tests/python/test_topi_transform.py