Changed the function signature

I'm not going to have to pull in gradients from outside of the network,
It will have to come from starting at the inputs with set gradients. It
will need to be a hashedVectorMap since we need to keep the partial
derivatives of each node to each input.