pytensor icon indicating copy to clipboard operation
pytensor copied to clipboard

Do not coerce gradients to TensorVariable

Open ricardoV94 opened this issue 2 months ago • 1 comments

This could cause spurious disconnected errors, because the tensorified variable was not in the graph of the cost


📚 Documentation preview 📚: https://pytensor--1685.org.readthedocs.build/en/1685/

ricardoV94 avatar Oct 22 '25 10:10 ricardoV94

How did this come up?

I was trying to use it in the loop autodiff example. Ended up not wanting it but fixed it anyway

ricardoV94 avatar Oct 28 '25 07:10 ricardoV94