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 a53607d commit 47139b7Copy full SHA for 47139b7
pymc3/distributions/dist_math.py
@@ -317,12 +317,14 @@ class SplineWrapper(theano.Op):
317
"""
318
319
__props__ = ('spline',)
320
- itypes = [tt.dscalar]
321
- otypes = [tt.dscalar]
322
323
def __init__(self, spline):
324
self.spline = spline
325
+ def make_node(self, x):
+ x = tt.as_tensor_variable(x)
326
+ return tt.Apply(self, [x], [x.type()])
327
+
328
@property
329
def grad_op(self):
330
if not hasattr(self, '_grad_op'):
0 commit comments