probcomp / Venturecxx

Primary implementation of the Venture probabilistic programming system
http://probcomp.csail.mit.edu/venture/
GNU General Public License v3.0
28 stars 6 forks source link

Gradients through expressions of ESRs are lost #388

Open axch opened 8 years ago

axch commented 8 years ago

To keep track of them I would need to adjust the custom automatic differentiation system to propagate gradients from evaluation to constant nodes, read and them off the constant nodes when computing the gradient of the request PSP.

axch commented 8 years ago

By code inspection, I assume that mapv currently has this problem, but it is masked by its output PSP not defining a gradient method at all.