{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2787","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2787/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2787/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2787/events","html_url":"https://github.com/tensorflow/tensorflow/issues/2787","id":159681878,"number":2787,"title":"0.9rc0 regression when using scan over axes with shape None","user":{"login":"jlowin","id":153965,"avatar_url":"https://avatars.githubusercontent.com/u/153965?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowin","html_url":"https://github.com/jlowin","followers_url":"https://api.github.com/users/jlowin/followers","following_url":"https://api.github.com/users/jlowin/following{/other_user}","gists_url":"https://api.github.com/users/jlowin/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowin/subscriptions","organizations_url":"https://api.github.com/users/jlowin/orgs","repos_url":"https://api.github.com/users/jlowin/repos","events_url":"https://api.github.com/users/jlowin/events{/privacy}","received_events_url":"https://api.github.com/users/jlowin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ebrevdo","id":1794715,"avatar_url":"https://avatars.githubusercontent.com/u/1794715?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrevdo","html_url":"https://github.com/ebrevdo","followers_url":"https://api.github.com/users/ebrevdo/followers","following_url":"https://api.github.com/users/ebrevdo/following{/other_user}","gists_url":"https://api.github.com/users/ebrevdo/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrevdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrevdo/subscriptions","organizations_url":"https://api.github.com/users/ebrevdo/orgs","repos_url":"https://api.github.com/users/ebrevdo/repos","events_url":"https://api.github.com/users/ebrevdo/events{/privacy}","received_events_url":"https://api.github.com/users/ebrevdo/received_events","type":"User","site_admin":false},"assignees":[{"login":"ebrevdo","id":1794715,"avatar_url":"https://avatars.githubusercontent.com/u/1794715?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrevdo","html_url":"https://github.com/ebrevdo","followers_url":"https://api.github.com/users/ebrevdo/followers","following_url":"https://api.github.com/users/ebrevdo/following{/other_user}","gists_url":"https://api.github.com/users/ebrevdo/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrevdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrevdo/subscriptions","organizations_url":"https://api.github.com/users/ebrevdo/orgs","repos_url":"https://api.github.com/users/ebrevdo/repos","events_url":"https://api.github.com/users/ebrevdo/events{/privacy}","received_events_url":"https://api.github.com/users/ebrevdo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-06-10T17:19:01Z","updated_at":"2016-08-01T22:22:47Z","closed_at":null,"body":"A simple cumulative sum with scan that worked in TF 0.8 fails in 0.9rc0 with an inconsistent shape error. I have attached code to illustrate the error below. Basically, a scan over the 0th axis fails when a different axis has None shape. This occurs, for example, when computing a cumulative sum over an arbitrary axis of a minibatched variable (after first transposing that axis to be in the 0th position).\r\n\r\n### Environment info\r\nOperating System: Mac OSX 10.11.5\r\n\r\nInstalled version of CUDA and cuDNN: \r\n(please attach the output of `ls -l /path/to/cuda/lib/libcud*`): N/A\r\n\r\nIf installed from binary pip package, provide:\r\n\r\n1. Which pip package you installed: \r\n\r\n  `https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl`\r\n\r\n2. The output from `python -c \"import tensorflow; print(tensorflow.__version__)\"`.\r\n\r\n  `0.9.0rc0`\r\n\r\nIf installed from sources, provide the commit hash:\r\n\r\n### Steps to reproduce\r\n\r\nRun the following code:\r\n```python\r\nimport tensorflow as tf\r\nx = tf.placeholder(dtype=tf.float32, shape=[None, 2])\r\nxT = tf.transpose(x)\r\n# scan over dimension 0 (with shape None)\r\nresult = tf.scan(lambda a, x: a + x, x)\r\n# scanned over transposed dimension 0 (with shape 2)\r\nresultT = tf.scan(lambda a, x: a + x, xT)\r\n```\r\n\r\nTo see the following error:\r\n`ValueError: Inconsistent shapes: saw (?,) but expected (?,) (and infer_shape=True)`\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/236726088","html_url":"https://github.com/tensorflow/tensorflow/issues/2787#issuecomment-236726088","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2787","id":236726088,"user":{"login":"barimohsin","id":16950218,"avatar_url":"https://avatars.githubusercontent.com/u/16950218?v=3","gravatar_id":"","url":"https://api.github.com/users/barimohsin","html_url":"https://github.com/barimohsin","followers_url":"https://api.github.com/users/barimohsin/followers","following_url":"https://api.github.com/users/barimohsin/following{/other_user}","gists_url":"https://api.github.com/users/barimohsin/gists{/gist_id}","starred_url":"https://api.github.com/users/barimohsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barimohsin/subscriptions","organizations_url":"https://api.github.com/users/barimohsin/orgs","repos_url":"https://api.github.com/users/barimohsin/repos","events_url":"https://api.github.com/users/barimohsin/events{/privacy}","received_events_url":"https://api.github.com/users/barimohsin/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T22:22:47Z","updated_at":"2016-08-01T22:22:47Z","body":"@ebrevdo this is a showstopper for me as well.. dealing with same issue as mentioned by @thomasquintana.. will appreciate if someone from google tensorflow team take a look at it soon."}}
{"actor":{"display_login":"barimohsin"}}