Did you validate the gradient: http://docs.pymc.io/advanced_theano.html (see near the end)?
Also, you might find recent PR from @mattpitkin helpful: https://github.com/pymc-devs/pymc3/pull/3169
Did you validate the gradient: http://docs.pymc.io/advanced_theano.html (see near the end)?
Also, you might find recent PR from @mattpitkin helpful: https://github.com/pymc-devs/pymc3/pull/3169