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 d4e8cad commit 4406a15Copy full SHA for 4406a15
pymc_bart/bart.py
@@ -26,6 +26,7 @@
26
from pymc.logprob.abstract import _logprob
27
from pytensor.tensor.random.op import RandomVariable
28
from pytensor.tensor.sharedvar import TensorSharedVariable
29
+from pytensor.tensor.variable import TensorVariable
30
31
from .split_rules import SplitRule
32
from .tree import Tree
@@ -54,7 +55,7 @@ def rng_fn( # pylint: disable=W0237
54
55
if not size:
56
size = None
57
- if isinstance(cls.Y, TensorSharedVariable):
58
+ if isinstance(cls.Y, TensorSharedVariable) or isinstance(cls.Y, TensorVariable):
59
Y = cls.Y.eval()
60
else:
61
Y = cls.Y
0 commit comments