{"action":"closed","issue":{"url":"https://api.github.com/repos/Theano/Theano/issues/6152","repository_url":"https://api.github.com/repos/Theano/Theano","labels_url":"https://api.github.com/repos/Theano/Theano/issues/6152/labels{/name}","comments_url":"https://api.github.com/repos/Theano/Theano/issues/6152/comments","events_url":"https://api.github.com/repos/Theano/Theano/issues/6152/events","html_url":"https://github.com/Theano/Theano/issues/6152","id":242877118,"number":6152,"title":"model won't run on GPU with new backend","user":{"login":"david-leon","id":23473037,"avatar_url":"https://avatars0.githubusercontent.com/u/23473037?v=4","gravatar_id":"","url":"https://api.github.com/users/david-leon","html_url":"https://github.com/david-leon","followers_url":"https://api.github.com/users/david-leon/followers","following_url":"https://api.github.com/users/david-leon/following{/other_user}","gists_url":"https://api.github.com/users/david-leon/gists{/gist_id}","starred_url":"https://api.github.com/users/david-leon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-leon/subscriptions","organizations_url":"https://api.github.com/users/david-leon/orgs","repos_url":"https://api.github.com/users/david-leon/repos","events_url":"https://api.github.com/users/david-leon/events{/privacy}","received_events_url":"https://api.github.com/users/david-leon/received_events","type":"User","site_admin":false},"labels":[{"id":173159,"url":"https://api.github.com/repos/Theano/Theano/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":343949161,"url":"https://api.github.com/repos/Theano/Theano/labels/GPU%20-%20New%20back-end","name":"GPU - New back-end","color":"009800","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-14T02:02:35Z","updated_at":"2017-07-20T15:30:37Z","closed_at":"2017-07-20T15:30:37Z","body":"The issue is related to Theano's optimization and new backend at GPU. The demo code will run on old backend (CPU and GPU), and new backend at CPU, but won't on new backend at GPU (except for `optimizer=None`), error raised as\r\n```\r\nValueError: GpuElemwise. Input dimension mis-match. Input 1 (indices start at 0) has shape[0] == 4, but the output's size on that axis is 31.\r\n```\r\nSeemed there was tensor reshaped wrongly inside the GPU.\r\n\r\nI've reduce the code as small as possible and put it in a repo [here](https://github.com/david-leon/theano_newbackend_debug) , to run the demo code, you'll need [Lasagne_CTC](https://github.com/david-leon/Lasagne_CTC) and [Lasagne_Ext](https://github.com/david-leon/Lasagne_Ext)\r\n\r\nI'm using the latest dev. version of Theano, cuDNN version 5105, Ubuntu 14.04, and Tesla M40.\r\n"}}
{"actor":{"display_login":"abergeron"}}