NumPy allowed · plain Python earns 10 bonus points
θ ← θ − 0.14 · ∂L/∂θ
Backpropagate upstream gradients through a Rectified Linear Unit (ReLU) activation function.
Implement relu_backward(dout, x) which computes the element-wise gradient dx given upstream gradient dout and forward input cache x. For each element, if x[i][j] > 0, the derivative is 1 so dx[i][j] = dout[i][j]; if x[i][j] <= 0, the derivative is 0 so dx[i][j] = 0.0. Round results to 4 decimal places.
relu_backward(dout: list[list[float]], x: list[list[float]]) -> list[list[float]]