Subgrad

A function that computes gradients for a subgraph of a symbolic theano function.