{"action":"created","issue":{"url":"https://api.github.com/repos/torch/nn/issues/845","repository_url":"https://api.github.com/repos/torch/nn","labels_url":"https://api.github.com/repos/torch/nn/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/torch/nn/issues/845/comments","events_url":"https://api.github.com/repos/torch/nn/issues/845/events","html_url":"https://github.com/torch/nn/issues/845","id":159174382,"number":845,"title":"# operator should be defined for nn.Container","user":{"login":"markpeot","id":539155,"avatar_url":"https://avatars.githubusercontent.com/u/539155?v=3","gravatar_id":"","url":"https://api.github.com/users/markpeot","html_url":"https://github.com/markpeot","followers_url":"https://api.github.com/users/markpeot/followers","following_url":"https://api.github.com/users/markpeot/following{/other_user}","gists_url":"https://api.github.com/users/markpeot/gists{/gist_id}","starred_url":"https://api.github.com/users/markpeot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markpeot/subscriptions","organizations_url":"https://api.github.com/users/markpeot/orgs","repos_url":"https://api.github.com/users/markpeot/repos","events_url":"https://api.github.com/users/markpeot/events{/privacy}","received_events_url":"https://api.github.com/users/markpeot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-08T14:14:55Z","updated_at":"2016-06-08T16:06:38Z","closed_at":null,"body":"All containers have a size operator (nn.Container:size).\r\nOnly sequential has #model defined.\r\n\r\nSuggest\r\nADD to nn/Container.lua:\r\n```\r\n    function Container:__len()\r\n       return #self.modules\r\n    end\r\n```\r\n\r\nREMOVE from nn/Sequential.lua:\r\n```\r\n    function Sequential:__len()\r\n       return #self.modules\r\n    end\r\n```"},"comment":{"url":"https://api.github.com/repos/torch/nn/issues/comments/224640301","html_url":"https://github.com/torch/nn/issues/845#issuecomment-224640301","issue_url":"https://api.github.com/repos/torch/nn/issues/845","id":224640301,"user":{"login":"markpeot","id":539155,"avatar_url":"https://avatars.githubusercontent.com/u/539155?v=3","gravatar_id":"","url":"https://api.github.com/users/markpeot","html_url":"https://github.com/markpeot","followers_url":"https://api.github.com/users/markpeot/followers","following_url":"https://api.github.com/users/markpeot/following{/other_user}","gists_url":"https://api.github.com/users/markpeot/gists{/gist_id}","starred_url":"https://api.github.com/users/markpeot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markpeot/subscriptions","organizations_url":"https://api.github.com/users/markpeot/orgs","repos_url":"https://api.github.com/users/markpeot/repos","events_url":"https://api.github.com/users/markpeot/events{/privacy}","received_events_url":"https://api.github.com/users/markpeot/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T16:06:38Z","updated_at":"2016-06-08T16:06:38Z","body":"The change looks harmless, but I would prefer to defer to soneone who knows how to test ALL of the dependencies. "}}
{"actor":{"display_login":"markpeot"}}