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 d34ed95 commit afdef12Copy full SHA for afdef12
pymc/logprob/mixture.py
@@ -289,7 +289,14 @@ def find_measurable_index_mixture(fgraph, node):
289
# We don't support (non-scalar) integer array indexing as it can pick repeated values,
290
# but the Mixture logprob assumes all mixture values are independent
291
if any(
292
- indices.dtype.startswith("int") and sum(1 - b for b in indices.type.broadcastable) > 0
+ (
293
+ isinstance(indices, (type(NoneConst), type(None)))
294
+ or
295
296
+ indices.dtype.startswith("int") and
297
+ sum(1 - b for b in indices.type.broadcastable) > 0
298
+ )
299
300
for indices in mixing_indices
301
if not isinstance(indices, SliceConstant)
302
):
0 commit comments