{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17625","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17625/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17625/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17625/events","html_url":"https://github.com/tensorflow/tensorflow/issues/17625","id":304139941,"number":17625,"title":"tf.layers.batch_normalization shape bug","user":{"login":"ppwwyyxx","id":1381301,"avatar_url":"https://avatars3.githubusercontent.com/u/1381301?v=4","gravatar_id":"","url":"https://api.github.com/users/ppwwyyxx","html_url":"https://github.com/ppwwyyxx","followers_url":"https://api.github.com/users/ppwwyyxx/followers","following_url":"https://api.github.com/users/ppwwyyxx/following{/other_user}","gists_url":"https://api.github.com/users/ppwwyyxx/gists{/gist_id}","starred_url":"https://api.github.com/users/ppwwyyxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppwwyyxx/subscriptions","organizations_url":"https://api.github.com/users/ppwwyyxx/orgs","repos_url":"https://api.github.com/users/ppwwyyxx/repos","events_url":"https://api.github.com/users/ppwwyyxx/events{/privacy}","received_events_url":"https://api.github.com/users/ppwwyyxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-11T08:26:29Z","updated_at":"2018-03-11T08:26:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**:\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**:\r\n- **TensorFlow installed from (source or binary)**:binary\r\n- **TensorFlow version (use command below)**:v1.6.0-0-gd2e24b6039 1.6.0\r\n- **Python version**: 3.6\r\n- **Bazel version (if compiling from source)**:\r\n- **GCC/Compiler version (if compiling from source)**:\r\n- **CUDA/cuDNN version**:\r\n- **GPU model and memory**:\r\n- **Exact command to reproduce**:\r\n```python\r\nx = tf.placeholder(tf.float32, [100,100,100,100])\r\ny = tf.layers.batch_normalization(x, axis=1, renorm=True, training=True, virtual_batch_size=2)\r\n```\r\nIt throws:\r\n```\r\nValueError: Dimension 1 in both shapes must be equal, but are 1 and 50. Shapes are [1,1,100,1,1] and [1,50,100,1,1]. for 'batch_normalization/AssignMovingAvg' (op: 'AssignSub') with input shapes:\r\n[1,1,100,1,1], [1,50,100,1,1].\r\n```\r\nHowever, \r\n```python\r\nx = tf.placeholder(tf.float32, [None,100,100,100])\r\ny = tf.layers.batch_normalization(x, axis=1, renorm=True, training=True, virtual_batch_size=2)\r\n```\r\nworks fine."}}
{"actor":{"display_login":"ppwwyyxx"}}