{"action":"created","issue":{"url":"https://api.github.com/repos/mila-udem/blocks/issues/688","labels_url":"https://api.github.com/repos/mila-udem/blocks/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/mila-udem/blocks/issues/688/comments","events_url":"https://api.github.com/repos/mila-udem/blocks/issues/688/events","html_url":"https://github.com/mila-udem/blocks/pull/688","id":83227126,"number":688,"title":"stack of LSTM","user":{"login":"udibr","id":608789,"avatar_url":"https://avatars.githubusercontent.com/u/608789?v=3","gravatar_id":"","url":"https://api.github.com/users/udibr","html_url":"https://github.com/udibr","followers_url":"https://api.github.com/users/udibr/followers","following_url":"https://api.github.com/users/udibr/following{/other_user}","gists_url":"https://api.github.com/users/udibr/gists{/gist_id}","starred_url":"https://api.github.com/users/udibr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udibr/subscriptions","organizations_url":"https://api.github.com/users/udibr/orgs","repos_url":"https://api.github.com/users/udibr/repos","events_url":"https://api.github.com/users/udibr/events{/privacy}","received_events_url":"https://api.github.com/users/udibr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-31T23:49:05Z","updated_at":"2015-06-03T18:57:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mila-udem/blocks/pulls/688","html_url":"https://github.com/mila-udem/blocks/pull/688","diff_url":"https://github.com/mila-udem/blocks/pull/688.diff","patch_url":"https://github.com/mila-udem/blocks/pull/688.patch"},"body":"LSTMstack acts as a plug-and-play replacement for a regular LSTM\r\n"},"comment":{"url":"https://api.github.com/repos/mila-udem/blocks/issues/comments/108575393","html_url":"https://github.com/mila-udem/blocks/pull/688#issuecomment-108575393","issue_url":"https://api.github.com/repos/mila-udem/blocks/issues/688","id":108575393,"user":{"login":"rizar","id":654434,"avatar_url":"https://avatars.githubusercontent.com/u/654434?v=3","gravatar_id":"","url":"https://api.github.com/users/rizar","html_url":"https://github.com/rizar","followers_url":"https://api.github.com/users/rizar/followers","following_url":"https://api.github.com/users/rizar/following{/other_user}","gists_url":"https://api.github.com/users/rizar/gists{/gist_id}","starred_url":"https://api.github.com/users/rizar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rizar/subscriptions","organizations_url":"https://api.github.com/users/rizar/orgs","repos_url":"https://api.github.com/users/rizar/repos","events_url":"https://api.github.com/users/rizar/events{/privacy}","received_events_url":"https://api.github.com/users/rizar/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T18:57:48Z","updated_at":"2015-06-03T18:57:48Z","body":"1) I would do smth like \r\n\r\n```python\r\n@recurrent\r\ndef _apply(self, ...):\r\n     \"\"\"Your current apply method.\"\"\"\r\n     pass\r\n \r\n@application\r\ndef apply(self, *args, **kwargs):\r\n    if kwargs.get('iterate', True):\r\n         # faster implementation, which can however share some code with _apply\r\n    else:\r\n         return self._apply(*args, **kwargs)\r\n```\r\n\r\n`AttentionRecurrent` from `blocks/bricks/attention.py` can be an example of doing such things.\r\n\r\n2) Growth is normal, but it definitely should be linear. If you use attention, there might be some memory issues."}}