Open
Description
Before
x = pm.Normal("x")
x_print = Print("x")(x)
After
x = pm.Normal("x", debug=True)
Context for the issue:
On https://www.pymc.io/projects/examples/en/latest/howto/howto_debugging.html we show how pytensor.printing.Print
can be used to debug-print RVs which is helpful for debugging model issues. This could be done with nicer API if we add a debug
kwarg that would wrap the RV internally with a Print
Op.