{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/2081","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/2081/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/2081/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/2081/events","html_url":"https://github.com/fchollet/keras/pull/2081","id":143596739,"number":2081,"title":"add weight sharing across layers","user":{"login":"temporaer","id":27792,"avatar_url":"https://avatars.githubusercontent.com/u/27792?v=3","gravatar_id":"","url":"https://api.github.com/users/temporaer","html_url":"https://github.com/temporaer","followers_url":"https://api.github.com/users/temporaer/followers","following_url":"https://api.github.com/users/temporaer/following{/other_user}","gists_url":"https://api.github.com/users/temporaer/gists{/gist_id}","starred_url":"https://api.github.com/users/temporaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temporaer/subscriptions","organizations_url":"https://api.github.com/users/temporaer/orgs","repos_url":"https://api.github.com/users/temporaer/repos","events_url":"https://api.github.com/users/temporaer/events{/privacy}","received_events_url":"https://api.github.com/users/temporaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-25T20:59:22Z","updated_at":"2016-03-27T01:27:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fchollet/keras/pulls/2081","html_url":"https://github.com/fchollet/keras/pull/2081","diff_url":"https://github.com/fchollet/keras/pull/2081.diff","patch_url":"https://github.com/fchollet/keras/pull/2081.patch"},"body":"Weight sharing is currently only implemented by Siamese, which can be problematic when one shared layer depends on the output of another.\r\nThis PR hijacks the `weights` parameter supported by the constructor of most existing layers.\r\nIf a sharedvariable is passed instead of a numpy variable, it overwrites the weight member itself (not its value!).\r\n"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/201967390","html_url":"https://github.com/fchollet/keras/pull/2081#issuecomment-201967390","issue_url":"https://api.github.com/repos/fchollet/keras/issues/2081","id":201967390,"user":{"login":"temporaer","id":27792,"avatar_url":"https://avatars.githubusercontent.com/u/27792?v=3","gravatar_id":"","url":"https://api.github.com/users/temporaer","html_url":"https://github.com/temporaer","followers_url":"https://api.github.com/users/temporaer/followers","following_url":"https://api.github.com/users/temporaer/following{/other_user}","gists_url":"https://api.github.com/users/temporaer/gists{/gist_id}","starred_url":"https://api.github.com/users/temporaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temporaer/subscriptions","organizations_url":"https://api.github.com/users/temporaer/orgs","repos_url":"https://api.github.com/users/temporaer/repos","events_url":"https://api.github.com/users/temporaer/events{/privacy}","received_events_url":"https://api.github.com/users/temporaer/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T01:27:19Z","updated_at":"2016-03-27T01:27:19Z","body":"@NasenSpray  I think this is a misunderstanding. Let's say you want to implement `f(g(f(x))`, where both `f` use the same parameter. How does `layers.core.add_shared_layer` help there?"}}