{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/3167","repository_url":"https://api.github.com/repos/Microsoft/CNTK","labels_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3167/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3167/comments","events_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3167/events","html_url":"https://github.com/Microsoft/CNTK/issues/3167","id":317878729,"number":3167,"title":"replace_placeholders error","user":{"login":"KBS91","id":33788199,"avatar_url":"https://avatars0.githubusercontent.com/u/33788199?v=4","gravatar_id":"","url":"https://api.github.com/users/KBS91","html_url":"https://github.com/KBS91","followers_url":"https://api.github.com/users/KBS91/followers","following_url":"https://api.github.com/users/KBS91/following{/other_user}","gists_url":"https://api.github.com/users/KBS91/gists{/gist_id}","starred_url":"https://api.github.com/users/KBS91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KBS91/subscriptions","organizations_url":"https://api.github.com/users/KBS91/orgs","repos_url":"https://api.github.com/users/KBS91/repos","events_url":"https://api.github.com/users/KBS91/events{/privacy}","received_events_url":"https://api.github.com/users/KBS91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T05:03:29Z","updated_at":"2018-04-26T18:26:28Z","closed_at":null,"author_association":"NONE","body":"Hello Everyone,\r\n\r\nCould you explain me what I do wrong here?\r\n![error](https://user-images.githubusercontent.com/33788199/39286742-e71cbb7a-491f-11e8-97ba-ed826175bc63.PNG)\r\n\r\n\r\nBest regards,\r\nChris"},"comment":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/comments/384743004","html_url":"https://github.com/Microsoft/CNTK/issues/3167#issuecomment-384743004","issue_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3167","id":384743004,"user":{"login":"KeDengMS","id":22626095,"avatar_url":"https://avatars0.githubusercontent.com/u/22626095?v=4","gravatar_id":"","url":"https://api.github.com/users/KeDengMS","html_url":"https://github.com/KeDengMS","followers_url":"https://api.github.com/users/KeDengMS/followers","following_url":"https://api.github.com/users/KeDengMS/following{/other_user}","gists_url":"https://api.github.com/users/KeDengMS/gists{/gist_id}","starred_url":"https://api.github.com/users/KeDengMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeDengMS/subscriptions","organizations_url":"https://api.github.com/users/KeDengMS/orgs","repos_url":"https://api.github.com/users/KeDengMS/repos","events_url":"https://api.github.com/users/KeDengMS/events{/privacy}","received_events_url":"https://api.github.com/users/KeDengMS/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T18:26:28Z","updated_at":"2018-04-26T18:26:28Z","author_association":"CONTRIBUTOR","body":"Placeholder is a special type of variable which has undetermined shapes and dynamic axes. In your modelCloned, it seems feature is an input variable with fixed shape, thus the replace failed. Please try replace input with a placeholder when creating modelCloned.\r\n\r\n```\r\nimport cntk as C\r\nii = C.input_variable(20, name='features')\r\nz = C.layers.Dense(10)(ii)\r\nph = C.placeholder()\r\nz_c = z.clone(C.CloneMethod.share, {ii:ph})\r\nii2 = C.input_variable(20, name='features2')\r\nz_c.replace_placeholders({ph:ii2})\r\n```\r\n"}}
{"actor":{"display_login":"KeDengMS"}}