[Relay][FastMath] Relay pass to use fast exp/tanh (#4873)
authorAnimesh Jain <anijain@umich.edu>
Sun, 1 Mar 2020 21:57:24 +0000 (13:57 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Mar 2020 21:57:24 +0000 (13:57 -0800)
commit51af454ad7f97a49b19bd02830edcdff9379c58f
tree1af6b6e00e8c933bb70b85716eb50482a3de4336
parent900d99cd9fa7367756b1d6b0682ac032759a8e39
[Relay][FastMath] Relay pass to use fast exp/tanh (#4873)

* [Relay][FastMath] Relay pass to use fast exp/tanh

* Adding required_pass to the tests.

* FastMath test changes.
include/tvm/relay/transform.h
python/tvm/relay/transform.py
src/relay/backend/build_module.cc
src/relay/op/tensor/unary.cc
src/relay/pass/fast_math.cc [new file with mode: 0644]
src/relay/pass/pattern_util.h
tests/python/relay/test_pass_fast_math.py [new file with mode: 0644]
topi/include/topi/elemwise.h
topi/python/topi/math.py
topi/src/topi.cc