Skip to content
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

Derive probability of set_subtensor operations #7553

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not use MeasurableCheckAndRaise Op in logp
  • Loading branch information
ricardoV94 committed Oct 29, 2024
commit a7c856b31056bba1e92c76c77043f3d0b457b8bb
2 changes: 1 addition & 1 deletion pymc/logprob/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def logprob_check_and_raise(op, values, inner_rv, *assertions, **kwargs):
(value,) = values
# transfer assertion from rv to value
assertions = replace_rvs_by_values(assertions, rvs_to_values={inner_rv: value})
value = op(value, *assertions)
value = CheckAndRaise(**op._props_dict())(value, *assertions)
return _logprob_helper(inner_rv, value)


Expand Down