-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove explicit optimization from math.logsumexp
#4747
Labels
Comments
Looks like the second graph was truncated. |
Thanks, fixed it |
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
ricardoV94
added a commit
that referenced
this issue
Jul 13, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes #4747
ricardoV94
added a commit
to ricardoV94/pymc
that referenced
this issue
Jul 15, 2021
…deprecate `log1mexp` in favor of Aesara implementations. Closes pymc-devs#4747
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aesara already performs one pass of this optimization (which will be exactly equivalent to the pymc3 one after pymc-devs/pytensor#465). As things stand, the final graph contains two passes of the same optimization, because the optimized output still contains the same form as the original unoptimized graph
log(sum(exp(x))) -> x_max + << log(sum(exp(x - x_max))) >>
https://github.com/pymc-devs/pymc3/blob/c62100c99df9a74194db89863776f155a95c076a/pymc3/math.py#L189-L194
The text was updated successfully, but these errors were encountered: