Debug mode in PyTensor

Thanks for responding!

I’ve looked through the PyTensor debugging page in the past. It seems pretty involved. I shied away from it because all of my code is at the level of PyMC.

It doesn’t tell me how to “re-run with most PyTensor optimizations disabled” or “set the PyTensor flag ‘optimizer=fast_compile’”, although I glean from your response that I can use pytensor.config.change_flags within a context to do that.

Part of my concern is in teaching. I teach a Bayesian course and last year I moved to PyMC, but I’m unsure about how deeply into PyTensor the students need to go. The more I use PyMC, the more it seems like you can’t really be effective without a fairly deep understanding of PyTensor.

Opher

1 Like