We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
exp(x) * exp(y) => exp(x+y) power(base, x) * power(base, y) => power(base, x + y)
From the top of my mind, I don't think such rewrite would affect numerical stability, but it should be faster...
import numpy as np %timeit np.exp(9) * np.exp(2) # 2.27 µs ± 53.5 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) %timeit np.exp(9+2) # 1.11 µs ± 37 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
There was a PR for this in Theano that went stale: Theano/Theano#5272
Maybe we can borrow something from it.
The text was updated successfully, but these errors were encountered:
Hi, I started to look into this.
Sorry, something went wrong.
Closed via #186
No branches or pull requests
Please describe the purpose of filing this issue
From the top of my mind, I don't think such rewrite would affect numerical stability, but it should be faster...
There was a PR for this in Theano that went stale: Theano/Theano#5272
Maybe we can borrow something from it.
The text was updated successfully, but these errors were encountered: