{"action":"created","issue":{"url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/52","repository_url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc","labels_url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/52/comments","events_url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/52/events","html_url":"https://github.com/gau820827/AI-writer_Data2Doc/issues/52","id":326434670,"number":52,"title":"Error in using small_evaluate","user":{"login":"SpencerLo-CMU","id":18594855,"avatar_url":"https://avatars3.githubusercontent.com/u/18594855?v=4","gravatar_id":"","url":"https://api.github.com/users/SpencerLo-CMU","html_url":"https://github.com/SpencerLo-CMU","followers_url":"https://api.github.com/users/SpencerLo-CMU/followers","following_url":"https://api.github.com/users/SpencerLo-CMU/following{/other_user}","gists_url":"https://api.github.com/users/SpencerLo-CMU/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerLo-CMU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerLo-CMU/subscriptions","organizations_url":"https://api.github.com/users/SpencerLo-CMU/orgs","repos_url":"https://api.github.com/users/SpencerLo-CMU/repos","events_url":"https://api.github.com/users/SpencerLo-CMU/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerLo-CMU/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T08:50:06Z","updated_at":"2018-05-26T05:26:46Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWhen I use `python3 small_evaluate.py`, I can see the above error message:\r\n> KeyError: 'unexpected key \"LocalEncoder.embedding.embedding1.weight\" in state_dict'\r\nAny idea on how to solve this problem? \r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/comments/392238063","html_url":"https://github.com/gau820827/AI-writer_Data2Doc/issues/52#issuecomment-392238063","issue_url":"https://api.github.com/repos/gau820827/AI-writer_Data2Doc/issues/52","id":392238063,"user":{"login":"weikaipan","id":26355464,"avatar_url":"https://avatars2.githubusercontent.com/u/26355464?v=4","gravatar_id":"","url":"https://api.github.com/users/weikaipan","html_url":"https://github.com/weikaipan","followers_url":"https://api.github.com/users/weikaipan/followers","following_url":"https://api.github.com/users/weikaipan/following{/other_user}","gists_url":"https://api.github.com/users/weikaipan/gists{/gist_id}","starred_url":"https://api.github.com/users/weikaipan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weikaipan/subscriptions","organizations_url":"https://api.github.com/users/weikaipan/orgs","repos_url":"https://api.github.com/users/weikaipan/repos","events_url":"https://api.github.com/users/weikaipan/events{/privacy}","received_events_url":"https://api.github.com/users/weikaipan/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T05:26:46Z","updated_at":"2018-05-26T05:26:46Z","author_association":"COLLABORATOR","body":"Hi,\r\n\r\nThanks for providing the scenario :) I realized that the error and inconsistency are at our end. Sorry about this error. The version on our repo is not the latest one, and our team plan to update the version during the following days, so currently I can only explain the reason of it.\r\n\r\nThe reason for this inconsistency is the default setting in ```train.py```  is ```HierarchicalRNN```, which is not any type in line 22 to 30 of  ```small_evaluate.py```.  So the evaluation script will expect a linear encoder as input. However, the encoder of a saved model is an RNN encoder by default after you ran ```train.py```. So the error was raised.\r\n\r\nThank you for letting us know again, and we'll update our master branch soon."}}
{"actor":{"display_login":"weikaipan"}}