Gradients without Backpropagation