Connecting PyMC3 to external code - help with understanding Theano custom Ops

@jorgenem. I’m facing the same problem with implementing the gradient in Ops. Would you be able to send me a copy too?