{"action":"created","issue":{"url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/159","repository_url":"https://api.github.com/repos/IBM/pytorch-seq2seq","labels_url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/159/comments","events_url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/159/events","html_url":"https://github.com/IBM/pytorch-seq2seq/issues/159","id":355848495,"node_id":"MDU6SXNzdWUzNTU4NDg0OTU=","number":159,"title":"Doubt on \"pytorch-seq2seq/seq2seq/models/EncoderRNN.py\"","user":{"login":"caozhen-alex","id":26409810,"node_id":"MDQ6VXNlcjI2NDA5ODEw","avatar_url":"https://avatars3.githubusercontent.com/u/26409810?v=4","gravatar_id":"","url":"https://api.github.com/users/caozhen-alex","html_url":"https://github.com/caozhen-alex","followers_url":"https://api.github.com/users/caozhen-alex/followers","following_url":"https://api.github.com/users/caozhen-alex/following{/other_user}","gists_url":"https://api.github.com/users/caozhen-alex/gists{/gist_id}","starred_url":"https://api.github.com/users/caozhen-alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caozhen-alex/subscriptions","organizations_url":"https://api.github.com/users/caozhen-alex/orgs","repos_url":"https://api.github.com/users/caozhen-alex/repos","events_url":"https://api.github.com/users/caozhen-alex/events{/privacy}","received_events_url":"https://api.github.com/users/caozhen-alex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-31T05:53:36Z","updated_at":"2018-08-31T20:05:02Z","closed_at":"2018-08-31T20:05:02Z","author_association":"NONE","body":"`if self.variable_lengths:\r\n            embedded = nn.utils.rnn.pack_padded_sequence(embedded, input_lengths, batch_first=True)\r\n  output, hidden = self.rnn(embedded)\r\n  if self.variable_lengths:\r\n            output, _ = nn.utils.rnn.pad_packed_sequence(output, batch_first=True)`\r\nHi,\r\nWhy here goes two `if self.variable_lengths`?\r\n\r\nAnd this code doesn't identify the h0, c0, is that means they default to zero?\r\n\r\nLooking forward to your response. @kylegao91 \r\n\r\n\r\n    "},"comment":{"url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/comments/417775387","html_url":"https://github.com/IBM/pytorch-seq2seq/issues/159#issuecomment-417775387","issue_url":"https://api.github.com/repos/IBM/pytorch-seq2seq/issues/159","id":417775387,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzc3NTM4Nw==","user":{"login":"pskrunner14","id":22117854,"node_id":"MDQ6VXNlcjIyMTE3ODU0","avatar_url":"https://avatars2.githubusercontent.com/u/22117854?v=4","gravatar_id":"","url":"https://api.github.com/users/pskrunner14","html_url":"https://github.com/pskrunner14","followers_url":"https://api.github.com/users/pskrunner14/followers","following_url":"https://api.github.com/users/pskrunner14/following{/other_user}","gists_url":"https://api.github.com/users/pskrunner14/gists{/gist_id}","starred_url":"https://api.github.com/users/pskrunner14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pskrunner14/subscriptions","organizations_url":"https://api.github.com/users/pskrunner14/orgs","repos_url":"https://api.github.com/users/pskrunner14/repos","events_url":"https://api.github.com/users/pskrunner14/events{/privacy}","received_events_url":"https://api.github.com/users/pskrunner14/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T20:05:02Z","updated_at":"2018-08-31T20:05:02Z","author_association":"COLLABORATOR","body":"Closing this for now"}}
{"actor":{"display_login":"pskrunner14"}}