Something changed in `pytensor > 2.12.3` (and thus `pymc > 5.6.1`) that makes my `pytensor.gradient.grad` call get stuck - any ideas?

You can use model.replace_rvs_by_values to transform arbitrary quantities (like Deterministics) into the value versions.

However your error is strange. Does model.initial_point() work?

1 Like