Skip to content

Commit a53607d

Browse files
michaelosthegetwiecki
authored andcommitted
reverting to original here
1 parent 6184bc0 commit a53607d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pymc3/distributions/continuous.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,11 +2004,4 @@ def random(self, point=None, size=None, repeat=None):
20042004
size=size)
20052005

20062006
def logp(self, value):
2007-
# TODO: this implementation is suboptimal
2008-
# the SplineWrapper should get proper broadcasting behavior
2009-
value = tt.as_tensor_variable(value)
2010-
if hasattr(value, "__iter__"):
2011-
iv = tt.stack([self.interp_op(v) for v in value])
2012-
else:
2013-
iv = self.interp_op(value)
2014-
return tt.log(iv / self.Z)
2007+
return tt.log(self.interp_op(value) / self.Z)

0 commit comments

Comments
 (0)