[topi][relay] new PR to re-add tan to TVM (#5025)
authornotoraptor <notoraptor@users.noreply.github.com>
Wed, 11 Mar 2020 01:24:04 +0000 (21:24 -0400)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 01:24:04 +0000 (10:24 +0900)
commit45ee7b5fef67ef362538885802f68cbd034f1524
treed0b73e3db300bc549a2d4ebb3dec18a3c28a9f09
parent6026af501e32e170a19b3783a164425c23b66f26
[topi][relay] new PR to re-add tan to TVM (#5025)

* Add relay operation relay.op.tan.

* Update tan implementation in TVM.

* Update tests.

* Add shape function for tan.

* Add missing main test to python/frontend/tensorflow/test_forward.

* Revert, back to sin/cos.

* Revert "Revert, back to sin/cos."

This reverts commit 4da5b503b921585ba9d80944b29136142b575c40.

* Fix implementation of tan in cuda. Do not support tan for float16.

Simplify topi/tests/python/test_topi_math. Add testing for tan with float32 and float64.

Finally implement tan as sin/cos in llvm.
28 files changed:
docs/frontend/tensorflow.rst
include/tvm/tir/op.h
python/tvm/relay/frontend/mxnet.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/frontend/tflite.py
python/tvm/relay/op/_tensor.py
python/tvm/relay/op/_tensor_grad.py
python/tvm/relay/op/tensor.py
python/tvm/te/__init__.py
python/tvm/tir/__init__.py
python/tvm/tir/op.py
src/relay/op/tensor/unary.cc
src/target/intrin_rule.cc
src/target/llvm/intrin_rule_llvm.cc
src/target/llvm/intrin_rule_nvptx.cc
src/target/llvm/intrin_rule_rocm.cc
src/target/source/intrin_rule_cuda.cc
src/tir/ir/expr.cc
tests/python/frontend/tensorflow/test_forward.py
tests/python/frontend/tflite/test_forward.py
tests/python/relay/test_op_grad_level1.py
tests/python/relay/test_op_level1.py
tests/python/unittest/test_testing.py
topi/include/topi/elemwise.h
topi/python/topi/math.py
topi/src/topi.cc
topi/tests/python/test_topi_basic.py
topi/tests/python/test_topi_math.py