Can you run the coal diaster?
import pymc as pm
import aesara.tensor as at
from aesara.compile.ops import as_op
@as_op(itypes=[at.lscalar], otypes=[at.lscalar])
def crazy_modulo3(value):
print('type of value is ' + str(type(value)))
if value > 0:
return value % 3
else:
return (-value + 1) % 3
with pm.Model() as model_deterministic:
a = pm.Poisson("a", 1)
b = crazy_modulo3(a)
pm.sample()
If that doesn’t sample for you, then it’s likely an installation issue.
Regardless, I can’t get your model to sample. Perhaps there’s an issue with the signature and/or return value of your op function? Any idea @ricardoV94 ?