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 4506fce commit 723ba71Copy full SHA for 723ba71
pymc/logprob/mixture.py
@@ -289,7 +289,7 @@ 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
- hasattr(indices, "dtype")
+ isinstance(indices, TensorVariable)
293
and indices.dtype.startswith("int")
294
and not all(indices.type.broadcastable)
295
for indices in mixing_indices
0 commit comments