{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/10835","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/10835/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/10835/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/10835/events","html_url":"https://github.com/tensorflow/tensorflow/issues/10835","id":237018994,"number":10835,"title":"Gradient of reduce_prod does not support negative axis","user":{"login":"pvanhaes","id":12328244,"avatar_url":"https://avatars2.githubusercontent.com/u/12328244?v=3","gravatar_id":"","url":"https://api.github.com/users/pvanhaes","html_url":"https://github.com/pvanhaes","followers_url":"https://api.github.com/users/pvanhaes/followers","following_url":"https://api.github.com/users/pvanhaes/following{/other_user}","gists_url":"https://api.github.com/users/pvanhaes/gists{/gist_id}","starred_url":"https://api.github.com/users/pvanhaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvanhaes/subscriptions","organizations_url":"https://api.github.com/users/pvanhaes/orgs","repos_url":"https://api.github.com/users/pvanhaes/repos","events_url":"https://api.github.com/users/pvanhaes/events{/privacy}","received_events_url":"https://api.github.com/users/pvanhaes/received_events","type":"User","site_admin":false},"labels":[{"id":299643928,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:contributions%20welcome","name":"stat:contributions welcome","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-19T20:46:21Z","updated_at":"2017-06-23T14:25:39Z","closed_at":null,"body":"The gradient of `reduce_prod` does not support negative axis unlike `reduce_prod` itself.\r\nIt is apparently caused by `gather` not supporting negative axes.\r\nThis code illustrates the problem.\r\n```python\r\nimport tensorflow as tf\r\n\r\nvars = tf.Variable([[1., 2.], [3., 4.]])\r\nprod = tf.reduce_prod(vars, -1) # Negative axis here\r\n\r\ntf.InteractiveSession()\r\ntf.global_variables_initializer().run()\r\nprint(prod.eval()) # Works fine\r\nprint(tf.gradients(prod, vars)[0].eval()) # Crashes\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/310679439","html_url":"https://github.com/tensorflow/tensorflow/issues/10835#issuecomment-310679439","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/10835","id":310679439,"user":{"login":"AnishShah","id":3175743,"avatar_url":"https://avatars2.githubusercontent.com/u/3175743?v=3","gravatar_id":"","url":"https://api.github.com/users/AnishShah","html_url":"https://github.com/AnishShah","followers_url":"https://api.github.com/users/AnishShah/followers","following_url":"https://api.github.com/users/AnishShah/following{/other_user}","gists_url":"https://api.github.com/users/AnishShah/gists{/gist_id}","starred_url":"https://api.github.com/users/AnishShah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnishShah/subscriptions","organizations_url":"https://api.github.com/users/AnishShah/orgs","repos_url":"https://api.github.com/users/AnishShah/repos","events_url":"https://api.github.com/users/AnishShah/events{/privacy}","received_events_url":"https://api.github.com/users/AnishShah/received_events","type":"User","site_admin":false},"created_at":"2017-06-23T14:25:39Z","updated_at":"2017-06-23T14:25:39Z","body":"Can I work on this?"}}
{"actor":{"display_login":"AnishShah"}}