{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2410","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2410/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2410/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2410/events","html_url":"https://github.com/tensorflow/tensorflow/issues/2410","id":155402766,"number":2410,"title":"Possible typo in doc of constant_initializer","user":{"login":"lifuhuang","id":3427331,"avatar_url":"https://avatars.githubusercontent.com/u/3427331?v=3","gravatar_id":"","url":"https://api.github.com/users/lifuhuang","html_url":"https://github.com/lifuhuang","followers_url":"https://api.github.com/users/lifuhuang/followers","following_url":"https://api.github.com/users/lifuhuang/following{/other_user}","gists_url":"https://api.github.com/users/lifuhuang/gists{/gist_id}","starred_url":"https://api.github.com/users/lifuhuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifuhuang/subscriptions","organizations_url":"https://api.github.com/users/lifuhuang/orgs","repos_url":"https://api.github.com/users/lifuhuang/repos","events_url":"https://api.github.com/users/lifuhuang/events{/privacy}","received_events_url":"https://api.github.com/users/lifuhuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T02:17:21Z","updated_at":"2016-05-18T02:17:21Z","closed_at":null,"body":"In the [doc](https://www.tensorflow.org/versions/master/api_docs/python/state_ops.html#constant_initializer) of `constant_initializer`, it says that the argument `value` should be:\r\n\r\n> value: A Python scalar. All elements of the initialized variable will be set to this value.\r\n\r\nBut in fact, it can take array-like argument and initialize variables properly with it. So I guess it's a mistake in the doc? It's kind of misleading for beginners.\r\n\r\nThanks!"}}