Comment Comment by wsmoses You don't always need the input to compute the gradient. For example the gradient of a sum function doesn't require the original input, it just sets all of the derivative(input)'s to 1. parent wsmoses 5 years ago