{"action":"created","issue":{"url":"https://api.github.com/repos/EderSantana/seya/issues/13","labels_url":"https://api.github.com/repos/EderSantana/seya/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/EderSantana/seya/issues/13/comments","events_url":"https://api.github.com/repos/EderSantana/seya/issues/13/events","html_url":"https://github.com/EderSantana/seya/issues/13","id":118280140,"number":13,"title":"How to implement a multiDimensional RNN?","user":{"login":"shampool","id":13158661,"avatar_url":"https://avatars.githubusercontent.com/u/13158661?v=3","gravatar_id":"","url":"https://api.github.com/users/shampool","html_url":"https://github.com/shampool","followers_url":"https://api.github.com/users/shampool/followers","following_url":"https://api.github.com/users/shampool/following{/other_user}","gists_url":"https://api.github.com/users/shampool/gists{/gist_id}","starred_url":"https://api.github.com/users/shampool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shampool/subscriptions","organizations_url":"https://api.github.com/users/shampool/orgs","repos_url":"https://api.github.com/users/shampool/repos","events_url":"https://api.github.com/users/shampool/events{/privacy}","received_events_url":"https://api.github.com/users/shampool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-22T18:30:42Z","updated_at":"2015-11-22T22:54:12Z","closed_at":null,"body":"Suppose the sequence are organized as a grid (2D) rather than a line. and each node recieve from it's predecessors in both row ,column and diagnal directions.\r\nThe following is an example, number means the sorted order of the grid feed into the LSTM.\r\n\r\n\r\nFor example, 6 will receive information from both 5 ,4 and 3.  and 7 will recieve information from 6 and 3, and so on....\r\n \r\n\r\n1     4        5\r\n\r\n2     3        6\r\n\r\n9     8        7\r\n\r\n10   11     12\r\n\r\n\r\nI plan to implement this using scan, but the problem is the tap is not fixed.  It grows up.\r\n\r\nI thought about using predecessorList to store the predecessor lists for every node. and pass the outputs  of scan  to scan. But I am not sure if scan supports that.\r\n\r\ndo you have any suggestions?\r\n\r\nI'd like to provide more information to clarify the problem if you need.\r\n\r\nThank you!\r\n\r\n@EderSantana \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EderSantana/seya/issues/comments/158816349","html_url":"https://github.com/EderSantana/seya/issues/13#issuecomment-158816349","issue_url":"https://api.github.com/repos/EderSantana/seya/issues/13","id":158816349,"user":{"login":"shampool","id":13158661,"avatar_url":"https://avatars.githubusercontent.com/u/13158661?v=3","gravatar_id":"","url":"https://api.github.com/users/shampool","html_url":"https://github.com/shampool","followers_url":"https://api.github.com/users/shampool/followers","following_url":"https://api.github.com/users/shampool/following{/other_user}","gists_url":"https://api.github.com/users/shampool/gists{/gist_id}","starred_url":"https://api.github.com/users/shampool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shampool/subscriptions","organizations_url":"https://api.github.com/users/shampool/orgs","repos_url":"https://api.github.com/users/shampool/repos","events_url":"https://api.github.com/users/shampool/events{/privacy}","received_events_url":"https://api.github.com/users/shampool/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T22:54:12Z","updated_at":"2015-11-22T22:54:12Z","body":"Sorry for the confusion！\r\ntaps can be found in the following code snept.  In this case, the taps are defined before the loops start. But in 2D case, I might need the taps can be changed over time.\r\n\r\n        outputs, updates = theano.scan(\r\n            self._step,\r\n            sequences=[x, dict(\r\n                input=padded_mask,\r\n                taps=[(-i) for i in range(self.depth)]\r\n            )],\r\n            outputs_info=[dict(\r\n                initial=initial,\r\n                taps=[(-i-1) for i in range(self.depth)]\r\n            )],\r\n\r\n\r\n\r\n"}}