-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Relay][OP] Register topi schedule for Relay fast_exp and fast_tanh #5131
Conversation
Could we have a unit test to guard this issue in the future? cc @icemelon9 |
@comaniac @icemelon9 Is there any suggestions for the above situation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The CI failure seems not related to the change in this PR. You could push a dummy commit to re-trigger the CI to see if the error is gone.
test_apply(relay.exp, "fast_exp", np.exp, low=-88, high=88, step=0.01) | ||
test_apply(relay.tanh, "fast_tanh", np.tanh, low=-10, high=10, step=0.01) | ||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the indent
@comaniac @icemelon9 By the way, I find that |
Yes, could you also add fast_tanh in the test_fastmath? |
…pache#5131) * register for fast_exp and fast_tanh * Add unit test for fast math * Add unit test for op fast math * Add unit test for op fast math * Add unit tests to guard registering topi schedule for Relay fast_exp and fast_tanh * Fix ident * Fix the indent * Add fast_tanh in the test_fastmath of topi tests
…pache#5131) * register for fast_exp and fast_tanh * Add unit test for fast math * Add unit test for op fast math * Add unit test for op fast math * Add unit tests to guard registering topi schedule for Relay fast_exp and fast_tanh * Fix ident * Fix the indent * Add fast_tanh in the test_fastmath of topi tests
I raised a question in TVM community.
(https://discuss.tvm.ai/t/relay-op-fast-exp-cant-be-built/6046).
If there's any problem, please don't hesitate to point it out. Thanks.