{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1122","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1122/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1122/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1122/events","html_url":"https://github.com/tensorflow/tensorflow/issues/1122","id":133980206,"number":1122,"title":"Easy to use batch norm layer.","user":{"login":"cesarsalgado","id":1115209,"avatar_url":"https://avatars.githubusercontent.com/u/1115209?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarsalgado","html_url":"https://github.com/cesarsalgado","followers_url":"https://api.github.com/users/cesarsalgado/followers","following_url":"https://api.github.com/users/cesarsalgado/following{/other_user}","gists_url":"https://api.github.com/users/cesarsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarsalgado/subscriptions","organizations_url":"https://api.github.com/users/cesarsalgado/orgs","repos_url":"https://api.github.com/users/cesarsalgado/repos","events_url":"https://api.github.com/users/cesarsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/cesarsalgado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2016-02-16T13:18:56Z","updated_at":"2016-08-04T16:54:47Z","closed_at":"2016-06-09T16:12:25Z","body":"Many non-experts are using the following code http://stackoverflow.com/questions/33949786/how-could-i-use-batch-normalization-in-tensorflow?answertab=votes#tab-top.\r\n\r\nIt would be nice to have an official batch norm layer given its importance in training DNNs."},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/237614562","html_url":"https://github.com/tensorflow/tensorflow/issues/1122#issuecomment-237614562","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1122","id":237614562,"user":{"login":"aecker","id":1311920,"avatar_url":"https://avatars.githubusercontent.com/u/1311920?v=3","gravatar_id":"","url":"https://api.github.com/users/aecker","html_url":"https://github.com/aecker","followers_url":"https://api.github.com/users/aecker/followers","following_url":"https://api.github.com/users/aecker/following{/other_user}","gists_url":"https://api.github.com/users/aecker/gists{/gist_id}","starred_url":"https://api.github.com/users/aecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aecker/subscriptions","organizations_url":"https://api.github.com/users/aecker/orgs","repos_url":"https://api.github.com/users/aecker/repos","events_url":"https://api.github.com/users/aecker/events{/privacy}","received_events_url":"https://api.github.com/users/aecker/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T16:54:46Z","updated_at":"2016-08-04T16:54:46Z","body":"I'm running into an issue, where the size of the input isn't fully known at the time of building the graph and I get the following error:\r\n```\r\nValueError: Shape of a new variable (foo/beta) must be fully defined, but instead was (?,).\r\n```\r\nI have to use `tf.shape(x)` at several other places because of this, but since `batch_norm()` creates the variables for beta etc. itself I have no way of doing that. Is there a way I can define the variable for beta myself and pass it to `batch_norm()`?"}}
{"actor":{"display_login":"aecker"}}