Skip to content

Commit 11d41db

Browse files
author
Luke LB
committed
reverted change to measurable_transform_logprob
1 parent 2f3087c commit 11d41db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymc/logprob/transforms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwa
419419
jacobian = jacobian.sum(axis=tuple(range(-ndim_supp, 0)))
420420

421421
# The jacobian is used to ensure a value in the supported domain was provided
422-
return pt.switch(pt.isnan(input_logprob + jacobian), -np.inf, input_logprob + jacobian)
422+
return pt.switch(pt.isnan(jacobian), -np.inf, input_logprob + jacobian)
423423

424424

425425
@_logcdf.register(MeasurableTransform)
@@ -739,7 +739,6 @@ def backward(self, value, *inputs):
739739
return pt.arccosh(value)
740740

741741

742-
743742
class TanhTransform(RVTransform):
744743
name = "tanh"
745744
ndim_supp = 0

0 commit comments

Comments
 (0)