{"action":"closed","issue":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/9319","repository_url":"https://api.github.com/repos/apache/incubator-mxnet","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/9319/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/9319/comments","events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/9319/events","html_url":"https://github.com/apache/incubator-mxnet/issues/9319","id":286287611,"node_id":"MDU6SXNzdWUyODYyODc2MTE=","number":9319,"title":"repeat run constructor function of SymbolBlock when using gluon interface","user":{"login":"tornadomeet","id":5860892,"node_id":"MDQ6VXNlcjU4NjA4OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5860892?v=4","gravatar_id":"","url":"https://api.github.com/users/tornadomeet","html_url":"https://github.com/tornadomeet","followers_url":"https://api.github.com/users/tornadomeet/followers","following_url":"https://api.github.com/users/tornadomeet/following{/other_user}","gists_url":"https://api.github.com/users/tornadomeet/gists{/gist_id}","starred_url":"https://api.github.com/users/tornadomeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tornadomeet/subscriptions","organizations_url":"https://api.github.com/users/tornadomeet/orgs","repos_url":"https://api.github.com/users/tornadomeet/repos","events_url":"https://api.github.com/users/tornadomeet/events{/privacy}","received_events_url":"https://api.github.com/users/tornadomeet/received_events","type":"User","site_admin":false},"labels":[{"id":708228884,"node_id":"MDU6TGFiZWw3MDgyMjg4ODQ=","url":"https://api.github.com/repos/apache/incubator-mxnet/labels/Gluon","name":"Gluon","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-05T13:23:34Z","updated_at":"2018-08-18T23:58:24Z","closed_at":"2018-08-18T23:58:24Z","author_association":"CONTRIBUTOR","body":"## Description\r\nwhen convert `mx.sym.##op##()` to `SymbolBlock` and run forward() during training, i found it will repeat call the constructor function, so if we Initialize some variable in the constructor() and change it in forward(), then it will be wrong because every time after it changed, it will be Initialized again.\r\n\r\ngive an example here: \r\nhttps://github.com/luoyetx/mx-lsoftmax/blob/master/operator/lsoftmax-inl.h#L54-L70\r\n\r\n`next_beta_` will be assign as `param.beta * 0.1f` every time before forward(), so we'll never go into https://github.com/luoyetx/mx-lsoftmax/blob/master/operator/lsoftmax-inl.h#L178  \r\n\r\nwhen using no gluon interface(original mxnet symbolic interface), it works well, but if we changed to gluon(SymbolBlock), then no work.\r\n\r\n## Environment info (Required)\r\n\r\npython\r\nubuntu16.04\r\nmxnet-v1.0.1\r\n\r\n@piiswrong  @sxjscience "}}
{"actor":{"display_login":"sandeep-krishnamurthy"}}