{"action":"closed","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/539","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/539/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/539/events","html_url":"https://github.com/tensorflow/tensorflow/issues/539","id":122857194,"number":539,"title":"Bug report, easy 1 line fix.","user":{"login":"wchan","id":1131892,"avatar_url":"https://avatars.githubusercontent.com/u/1131892?v=3","gravatar_id":"","url":"https://api.github.com/users/wchan","html_url":"https://github.com/wchan","followers_url":"https://api.github.com/users/wchan/followers","following_url":"https://api.github.com/users/wchan/following{/other_user}","gists_url":"https://api.github.com/users/wchan/gists{/gist_id}","starred_url":"https://api.github.com/users/wchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchan/subscriptions","organizations_url":"https://api.github.com/users/wchan/orgs","repos_url":"https://api.github.com/users/wchan/repos","events_url":"https://api.github.com/users/wchan/events{/privacy}","received_events_url":"https://api.github.com/users/wchan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"mrry","id":192142,"avatar_url":"https://avatars.githubusercontent.com/u/192142?v=3","gravatar_id":"","url":"https://api.github.com/users/mrry","html_url":"https://github.com/mrry","followers_url":"https://api.github.com/users/mrry/followers","following_url":"https://api.github.com/users/mrry/following{/other_user}","gists_url":"https://api.github.com/users/mrry/gists{/gist_id}","starred_url":"https://api.github.com/users/mrry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrry/subscriptions","organizations_url":"https://api.github.com/users/mrry/orgs","repos_url":"https://api.github.com/users/mrry/repos","events_url":"https://api.github.com/users/mrry/events{/privacy}","received_events_url":"https://api.github.com/users/mrry/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-18T01:17:15Z","updated_at":"2015-12-18T20:04:41Z","closed_at":"2015-12-18T20:04:41Z","body":"filename: tensorflow/python/framework/ops.py\r\n\r\ndef set_shapes_for_outputs(op):\r\n  \"\"\"Uses the registered shape functions to set the shapes for op's outputs.\"\"\"\r\n  try: \r\n    shape_func = _shape_registry.lookup(op.type)\r\n  except LookupError:\r\n    try: \r\n      shape_func = _default_shape_function_registry.lookup(op.type)\r\n    except LookupError:\r\n      raise RuntimeError(\"No shape function registered for standard op: %s\"\r\n                         % op.type)\r\n  shapes = shape_func(op)\r\n  if len(op.outputs) != len(shapes):\r\n    raise RuntimeError(\r\n        \"Shape function for op %s returned %g shapes but expecting %g\" %\r\n        (op, len(op.outputs), len(shapes)))\r\n  for output, s in zip(op.outputs, shapes):\r\n    output.set_shape(s)\r\n\r\n\r\nThe call of \"Shape function for op %s returned %g shapes but expecting %g\" %\" is reversed, should be (op, len(op.shapes), len(outputs)); (i swapped the shapes and outputs) ... took me awhile to debug an unrelated bug because i was getting the wrong debug message ;)"}}