{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/3063","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/3063/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/3063/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/3063/events","html_url":"https://github.com/fchollet/keras/issues/3063","id":162193072,"number":3063,"title":"self.non_trainable_weights not working correctly","user":{"login":"AdityaGudimella","id":5364789,"avatar_url":"https://avatars.githubusercontent.com/u/5364789?v=3","gravatar_id":"","url":"https://api.github.com/users/AdityaGudimella","html_url":"https://github.com/AdityaGudimella","followers_url":"https://api.github.com/users/AdityaGudimella/followers","following_url":"https://api.github.com/users/AdityaGudimella/following{/other_user}","gists_url":"https://api.github.com/users/AdityaGudimella/gists{/gist_id}","starred_url":"https://api.github.com/users/AdityaGudimella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdityaGudimella/subscriptions","organizations_url":"https://api.github.com/users/AdityaGudimella/orgs","repos_url":"https://api.github.com/users/AdityaGudimella/repos","events_url":"https://api.github.com/users/AdityaGudimella/events{/privacy}","received_events_url":"https://api.github.com/users/AdityaGudimella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-24T17:25:47Z","updated_at":"2016-06-28T00:01:01Z","closed_at":null,"body":"As far as I understand, when I write a layer, and add some weights to self.non_trainable_weights, it should add these weights to the gradient function as T.grad(loss, wrt, consider_constant=non_trainable_weights). Keras is not doing that for my layer, and I don't understand why. Please help me out.\r\nI'm adding the non_trainable_weights in the call function of the layer\r\n\r\nPlease make sure that the boxes below are checked before you submit your issue. Thank you!\r\n\r\n- [ ] Check that you are up-to-date with the master branch of Keras. You can update with:\r\npip install git+git://github.com/fchollet/keras.git --upgrade --no-deps\r\n\r\n- [ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:\r\npip install git+git://github.com/Theano/Theano.git --upgrade --no-deps\r\n\r\n- [ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short)."},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/228911597","html_url":"https://github.com/fchollet/keras/issues/3063#issuecomment-228911597","issue_url":"https://api.github.com/repos/fchollet/keras/issues/3063","id":228911597,"user":{"login":"ChristianThomae","id":18348444,"avatar_url":"https://avatars.githubusercontent.com/u/18348444?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianThomae","html_url":"https://github.com/ChristianThomae","followers_url":"https://api.github.com/users/ChristianThomae/followers","following_url":"https://api.github.com/users/ChristianThomae/following{/other_user}","gists_url":"https://api.github.com/users/ChristianThomae/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianThomae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianThomae/subscriptions","organizations_url":"https://api.github.com/users/ChristianThomae/orgs","repos_url":"https://api.github.com/users/ChristianThomae/repos","events_url":"https://api.github.com/users/ChristianThomae/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianThomae/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T00:01:01Z","updated_at":"2016-06-28T00:01:01Z","body":"I'm sorry, i misunderstood you there.\r\nCan't provide you an answer here, but that is a good question."}}
{"actor":{"display_login":"ChristianThomae"}}