{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6316","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6316/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6316/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6316/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6316","id":355492083,"node_id":"MDU6SXNzdWUzNTU0OTIwODM=","number":6316,"title":"C-LSTM with mask","user":{"login":"liweigu","id":31612697,"node_id":"MDQ6VXNlcjMxNjEyNjk3","avatar_url":"https://avatars3.githubusercontent.com/u/31612697?v=4","gravatar_id":"","url":"https://api.github.com/users/liweigu","html_url":"https://github.com/liweigu","followers_url":"https://api.github.com/users/liweigu/followers","following_url":"https://api.github.com/users/liweigu/following{/other_user}","gists_url":"https://api.github.com/users/liweigu/gists{/gist_id}","starred_url":"https://api.github.com/users/liweigu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liweigu/subscriptions","organizations_url":"https://api.github.com/users/liweigu/orgs","repos_url":"https://api.github.com/users/liweigu/repos","events_url":"https://api.github.com/users/liweigu/events{/privacy}","received_events_url":"https://api.github.com/users/liweigu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-08-30T09:05:50Z","updated_at":"2018-09-03T07:04:00Z","closed_at":null,"author_association":"NONE","body":"I'm training a model to use time-serial images to predict new images, using convolutional LSTM, set RnnToCnnPreProcessor to the first layer(ConvolutionLayer). In order to use n images to predict new n images, i'm using the 'many-to-many', set feature and label both are of (n x 2) size, and set featuresMask as [1,1..,1,0,...,0], set labelsMask as [0,0,...,0,1,...,1]. But it got error :\r\n'Expected rank 4 mask array for 2D CNN layers. Mask arrays for 2D CNN layers must have shape [batchSize,channels,X,Y]'.\r\nIt seems the featuresMask is applied to input as CNN, how to apply it to input as RNN?\r\n\r\nAs my raw code is a bit confused, i re-organized the code at\r\nhttps://gist.github.com/liweigu/f0dafd8045d766b39c23e1b52938b2ac\r\n(Assuming minibatch = 1, the code is simplied. I can add more code if needed.)"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/418020125","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6316#issuecomment-418020125","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6316","id":418020125,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODAyMDEyNQ==","user":{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T07:04:00Z","updated_at":"2018-09-03T07:04:00Z","author_association":"MEMBER","body":"OK, I'll re-run your code later and see.\r\nI did add a unit test derived from your code though, when implementing the fix."}}
{"actor":{"display_login":"AlexDBlack"}}