Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNN-BPTT (ch9.7.1) partial derivative notation confusion #2505

Open
kennethjang34 opened this issue Jun 4, 2023 · 0 comments
Open

RNN-BPTT (ch9.7.1) partial derivative notation confusion #2505

kennethjang34 opened this issue Jun 4, 2023 · 0 comments

Comments

@kennethjang34
Copy link

Hello! I am a CS student and have been studying DL in his spare time with D2L textbook:)
I'd like to tell you that I really appreciate your work and have really loved the book! Thank you very much.

When I was reading RNN part, I am a bit confused about how we get the partial derivative of hidden state value with respect to w_h.

in 9.7.1 Analysis of Gradients in RNNs,
for formula 9.7.4, we have:
$$\frac{\partial h_t}{\partial w_h}= \frac{\partial f(x_{t},h_{t-1},w_h)}{\partial w_h} +\frac{\partial f(x_{t},h_{t-1},w_h)}{\partial h_{t-1}} \frac{\partial h_{t-1}}{\partial w_h}.$$

However, as we have the following from formula 9.7.1
$$h_t:=f(x_t,h_{t-1},w_h).$$,
isn't it
$$\frac{\partial h_t}{\partial w_h}-\frac{\partial f(x_{t},h_{t-1},w_h)}{\partial w_h}=0.$$ ?
I was wondering if
$$\frac{\partial h_t}{\partial w_h}, \frac{\partial h_{t-1}}{\partial w_h}.$$
should be ordinary deriviates of some function representing h_t that can be parameterized with w_h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant