Skip to content
tmpl

hidden_grad

void hidden_grad()

The hidden gradient of step t in the gates' (size-H) basis: dY_t plus the gradient carried back from step t + 1, pulled through W_hr when projected (which is also where dW_hr picks up this step's share).