Skip to content

Commit 0c9ae26

Browse files
author
Maxim Kochurov
committed
union 2 random variables
1 parent aa74cf2 commit 0c9ae26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymc/distributions/logprob.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ def _check_no_rvs(logp_terms: Sequence[TensorVariable]):
116116
if (
117117
node.owner
118118
and isinstance(node.owner.op, RandomVariable)
119-
and not isinstance(node.owner.op, SimulatorRV)
120-
and not isinstance(node.owner.op, MinibatchIndexRV)
119+
and not isinstance(node.owner.op, (SimulatorRV, MinibatchIndexRV))
121120
)
122121
]
123122
if unexpected_rv_nodes:

0 commit comments

Comments
 (0)