Add support for Tensorflow operators log1p, cos, sin (#3614)
authoralexgl-github <53275205+alexgl-github@users.noreply.github.com>
Thu, 1 Aug 2019 19:46:39 +0000 (12:46 -0700)
committerTianqi Chen <tqchen@users.noreply.github.com>
Thu, 1 Aug 2019 19:46:39 +0000 (12:46 -0700)
commitd72cdfa604fccbec6ddf1977138f82be709e321c
tree361e7e0aae429742d530d8d1a5d5f20f26d80d8f
parent331585f42e8f75d5269ff08e8ce44a2555bcafab
Add support for Tensorflow operators log1p, cos, sin (#3614)

The patch adds support for Tensorflow operators log1p and cos
Tensorflow log1p is described at https://www.tensorflow.org/api_docs/python/tf/math/log1p
Tensorflow cos is described at https://www.tensorflow.org/api_docs/python/tf/math/cos
Tensorflow sin is described at https://www.tensorflow.org/api_docs/python/tf/math/sin
19 files changed:
include/tvm/expr_operator.h
python/tvm/intrin.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/op/_tensor.py
python/tvm/relay/op/_tensor_grad.py
python/tvm/relay/op/tensor.py
src/codegen/intrin_rule.cc
src/codegen/intrin_rule_cuda.cc
src/codegen/llvm/intrin_rule_llvm.cc
src/codegen/llvm/intrin_rule_nvptx.cc
src/relay/op/tensor/unary.cc
tests/python/frontend/tensorflow/test_forward.py
tests/python/relay/test_op_grad_level1.py
tests/python/relay/test_op_level1.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