{"action":"closed","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/1233","labels_url":"https://api.github.com/repos/fchollet/keras/issues/1233/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/1233/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/1233/events","html_url":"https://github.com/fchollet/keras/issues/1233","id":121385305,"number":1233,"title":"Bug report in RNN","user":{"login":"jeffzhengye","id":4641009,"avatar_url":"https://avatars.githubusercontent.com/u/4641009?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffzhengye","html_url":"https://github.com/jeffzhengye","followers_url":"https://api.github.com/users/jeffzhengye/followers","following_url":"https://api.github.com/users/jeffzhengye/following{/other_user}","gists_url":"https://api.github.com/users/jeffzhengye/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffzhengye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffzhengye/subscriptions","organizations_url":"https://api.github.com/users/jeffzhengye/orgs","repos_url":"https://api.github.com/users/jeffzhengye/repos","events_url":"https://api.github.com/users/jeffzhengye/events{/privacy}","received_events_url":"https://api.github.com/users/jeffzhengye/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-10T02:07:09Z","updated_at":"2015-12-11T18:42:07Z","closed_at":"2015-12-11T18:42:07Z","body":"Around line 68 in recurrent.py\r\nIf we are using float32, line 68 will be a float32 times int32, which will produce a float64. (is it because of theano version?)\r\nchanging line 68 to X *= K.expand_dims(mask).astype(X.dtype) will fix this problem. \r\n\r\n        if mask:\r\n            # apply mask\r\n            X *= K.expand_dims(mask)   # line 68\r\n            masking = True"}}