{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/2309","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/2309/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/2309/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/2309/events","html_url":"https://github.com/fchollet/keras/issues/2309","id":148209361,"number":2309,"title":"identity matrix in Keras 1.0","user":{"login":"keunwoochoi","id":16153797,"avatar_url":"https://avatars.githubusercontent.com/u/16153797?v=3","gravatar_id":"","url":"https://api.github.com/users/keunwoochoi","html_url":"https://github.com/keunwoochoi","followers_url":"https://api.github.com/users/keunwoochoi/followers","following_url":"https://api.github.com/users/keunwoochoi/following{/other_user}","gists_url":"https://api.github.com/users/keunwoochoi/gists{/gist_id}","starred_url":"https://api.github.com/users/keunwoochoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keunwoochoi/subscriptions","organizations_url":"https://api.github.com/users/keunwoochoi/orgs","repos_url":"https://api.github.com/users/keunwoochoi/repos","events_url":"https://api.github.com/users/keunwoochoi/events{/privacy}","received_events_url":"https://api.github.com/users/keunwoochoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T23:20:38Z","updated_at":"2016-04-13T23:24:13Z","closed_at":null,"body":"For identity connection of Residual networks in Keras, I was using this class.\r\n```\r\nclass Identity(Layer):\r\n    def get_output(self, train):\r\n        return self.get_input(train)\r\n```\r\nI checked out [porting guide](https://github.com/fchollet/keras/wiki/Porting-your-custom-layers-from-Keras-0.3-to-Keras-1.0), which says `get_output` should be replaced with `call`. But I'm not sure what would be equivalent to `self.get_input(train)`."},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/209687989","html_url":"https://github.com/fchollet/keras/issues/2309#issuecomment-209687989","issue_url":"https://api.github.com/repos/fchollet/keras/issues/2309","id":209687989,"user":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T23:24:12Z","updated_at":"2016-04-13T23:24:12Z","body":"def call(x, mask=None):\n   return x\n\nOn 13 April 2016 at 16:20, Keunwoo Choi <notifications@github.com> wrote:\n\n> For identity connection of Residual networks in Keras, I was using this\n> class.\n>\n> class Identity(Layer):\n>     def get_output(self, train):\n>         return self.get_input(train)\n>\n> I checked out porting guide\n> <https://github.com/fchollet/keras/wiki/Porting-your-custom-layers-from-Keras-0.3-to-Keras-1.0>,\n> which says get_output should be replaced with call. But I'm not sure what\n> would be equivalent to self.get_input(train).\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/fchollet/keras/issues/2309>\n>\n"}}