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.
1 parent 73dee50 commit eb7c3b6Copy full SHA for eb7c3b6
pymc/distributions/transforms.py
@@ -96,14 +96,14 @@ def __init__(self, ndim_supp=None):
96
97
def backward(self, value, *inputs):
98
x = pt.zeros(value.shape)
99
- x = pt.inc_subtensor(x[..., 0], value[..., 0])
100
- x = pt.inc_subtensor(x[..., 1:], pt.exp(value[..., 1:]))
+ x = pt.set_subtensor(x[..., 0], value[..., 0])
+ x = pt.set_subtensor(x[..., 1:], pt.exp(value[..., 1:]))
101
return pt.cumsum(x, axis=-1)
102
103
def forward(self, value, *inputs):
104
y = pt.zeros(value.shape)
105
- y = pt.inc_subtensor(y[..., 0], value[..., 0])
106
- y = pt.inc_subtensor(y[..., 1:], pt.log(value[..., 1:] - value[..., :-1]))
+ y = pt.set_subtensor(y[..., 0], value[..., 0])
+ y = pt.set_subtensor(y[..., 1:], pt.log(value[..., 1:] - value[..., :-1]))
107
return y
108
109
def log_jac_det(self, value, *inputs):
0 commit comments