The dtype of parameters can change as they get successively raveled and unraveled. This is problematic when sampling from the posterior distribution of a model whose observation distribution is discrete. In this PR we add a property to RaveledParamsMap that keeps track of dtypes.
The test that fails is unrelated to the current PR, it seems related to a recent change in scan_perform.pyx. Indeed all tests passe with aesara==2.7.1 but this particular test fails with aesara>=2.7.2.
The dtype of parameters can change as they get successively raveled and unraveled. This is problematic when sampling from the posterior distribution of a model whose observation distribution is discrete. In this PR we add a property to RaveledParamsMap that keeps track of dtypes.