{"action":"created","issue":{"url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/7","repository_url":"https://api.github.com/repos/Burton2000/CS231n-2017","labels_url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/7/comments","events_url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/7/events","html_url":"https://github.com/Burton2000/CS231n-2017/issues/7","id":380896509,"node_id":"MDU6SXNzdWUzODA4OTY1MDk=","number":7,"title":"A question on rnn_layer","user":{"login":"nihuo76","id":40806272,"node_id":"MDQ6VXNlcjQwODA2Mjcy","avatar_url":"https://avatars1.githubusercontent.com/u/40806272?v=4","gravatar_id":"","url":"https://api.github.com/users/nihuo76","html_url":"https://github.com/nihuo76","followers_url":"https://api.github.com/users/nihuo76/followers","following_url":"https://api.github.com/users/nihuo76/following{/other_user}","gists_url":"https://api.github.com/users/nihuo76/gists{/gist_id}","starred_url":"https://api.github.com/users/nihuo76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nihuo76/subscriptions","organizations_url":"https://api.github.com/users/nihuo76/orgs","repos_url":"https://api.github.com/users/nihuo76/repos","events_url":"https://api.github.com/users/nihuo76/events{/privacy}","received_events_url":"https://api.github.com/users/nihuo76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-14T21:34:37Z","updated_at":"2018-11-16T08:50:15Z","closed_at":null,"author_association":"NONE","body":"Hi, I am also doing assignment 3 of CS231n. Yet I didn't get the correct number for the function `rnn_backward`. My code looks like this:\r\n```python\r\nfor t in reversed(range(T)):\r\n        dh[:,t,:]= dprev_h + dh[:,t,:]\r\n        dx[:,t,:], dprev_h, dWx_temp, dWh_temp, db_temp = rnn_step_backward(dh[:,t,:], cache[t])\r\n        dWx += dWx_temp\r\n        dWh += dWh_temp\r\n        db += db_temp\r\n```\r\nMy cache is also a list of tuple of numpy array and every else is the same. Yet I did not get the correct number. May I ask if the reason of this weird result?"},"comment":{"url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/comments/439323810","html_url":"https://github.com/Burton2000/CS231n-2017/issues/7#issuecomment-439323810","issue_url":"https://api.github.com/repos/Burton2000/CS231n-2017/issues/7","id":439323810,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTMyMzgxMA==","user":{"login":"Burton2000","id":17595269,"node_id":"MDQ6VXNlcjE3NTk1MjY5","avatar_url":"https://avatars2.githubusercontent.com/u/17595269?v=4","gravatar_id":"","url":"https://api.github.com/users/Burton2000","html_url":"https://github.com/Burton2000","followers_url":"https://api.github.com/users/Burton2000/followers","following_url":"https://api.github.com/users/Burton2000/following{/other_user}","gists_url":"https://api.github.com/users/Burton2000/gists{/gist_id}","starred_url":"https://api.github.com/users/Burton2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Burton2000/subscriptions","organizations_url":"https://api.github.com/users/Burton2000/orgs","repos_url":"https://api.github.com/users/Burton2000/repos","events_url":"https://api.github.com/users/Burton2000/events{/privacy}","received_events_url":"https://api.github.com/users/Burton2000/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T08:50:15Z","updated_at":"2018-11-16T08:50:15Z","author_association":"OWNER","body":"After the for loop do you return the last hidden state gradient, so you set `dh0 = dprev_h`"}}
{"actor":{"display_login":"Burton2000"}}