{"action":"closed","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/599","labels_url":"https://api.github.com/repos/fchollet/keras/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/599/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/599/events","html_url":"https://github.com/fchollet/keras/issues/599","id":103068510,"number":599,"title":"Graph Model: theano.gradient.DisconnectedInputError","user":{"login":"NancyZxll","id":4602226,"avatar_url":"https://avatars.githubusercontent.com/u/4602226?v=3","gravatar_id":"","url":"https://api.github.com/users/NancyZxll","html_url":"https://github.com/NancyZxll","followers_url":"https://api.github.com/users/NancyZxll/followers","following_url":"https://api.github.com/users/NancyZxll/following{/other_user}","gists_url":"https://api.github.com/users/NancyZxll/gists{/gist_id}","starred_url":"https://api.github.com/users/NancyZxll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NancyZxll/subscriptions","organizations_url":"https://api.github.com/users/NancyZxll/orgs","repos_url":"https://api.github.com/users/NancyZxll/repos","events_url":"https://api.github.com/users/NancyZxll/events{/privacy}","received_events_url":"https://api.github.com/users/NancyZxll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T16:41:23Z","updated_at":"2015-08-25T17:55:23Z","closed_at":"2015-08-25T17:55:23Z","body":"My code is:\r\n```\r\nmodel = Graph()\r\nmodel.add_input(name='input',ndim=4)\r\nmodel.add_input(name='I1',ndim=4)\r\nmodel.add_input(name='I2',ndim=4)\r\nmodel.add_input(name='I3',ndim=4)\r\nmodel.add_node(Convolution2D(filter1Num, 1, filter1Row, filter1Col, border_mode='valid'), name='Conv1',input='input')\r\nmodel.add_node(Convolution2D(1, 1, filter1Row, filter1Col, border_mode='valid'), name='Ia', input='I1' )\r\nmodel.add_node(Convolution2D(1, 1, filter1Row, filter1Col, border_mode='valid'), name='Ib', input='I2' )\r\nmodel.add_node(Convolution2D(1, 1, filter1Row, filter1Col, border_mode='valid'), name='Ic', input='I3' )\r\nmodel.add_node(Flatten(), name='flatten', inputs=['Ia','Ib','Ic'])\r\nmodel.add_node(Dense(7000,20*21),name='dense1',input='flatten')\r\nmodel.add_output(name='output', input='dense1')\r\n\r\nmodel.compile('rmsprop', {'output':'mse'})\r\n```\r\n\r\nThe compilation error is:\r\ntheano.gradient.DisconnectedInputError: grad method was asked to compute the gradient with respect to a variable that is not part of the computational graph of the cost, or is used only by a non-differentiable operator: Conv1_p0\r\n\r\nHow can I solve the problem?\r\nThank you all!"}}