{"action":"opened","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/3368","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/3368/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/3368/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/3368/events","html_url":"https://github.com/fchollet/keras/issues/3368","id":168645559,"number":3368,"title":"Add reverse() in backend","user":{"login":"djstrong","id":1849959,"avatar_url":"https://avatars.githubusercontent.com/u/1849959?v=3","gravatar_id":"","url":"https://api.github.com/users/djstrong","html_url":"https://github.com/djstrong","followers_url":"https://api.github.com/users/djstrong/followers","following_url":"https://api.github.com/users/djstrong/following{/other_user}","gists_url":"https://api.github.com/users/djstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/djstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djstrong/subscriptions","organizations_url":"https://api.github.com/users/djstrong/orgs","repos_url":"https://api.github.com/users/djstrong/repos","events_url":"https://api.github.com/users/djstrong/events{/privacy}","received_events_url":"https://api.github.com/users/djstrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-01T13:27:44Z","updated_at":"2016-08-01T13:27:44Z","closed_at":null,"body":"Now lambda function is not working with tensorflow:\r\n\r\n```\r\ndef reverse_func(x):\r\n    import keras.backend as K\r\n    assert K.ndim(x) == 3, \"Should be a 3D tensor.\"\r\n    rev = K.permute_dimensions(x, (1, 0, 2))[::-1]\r\n    return K.permute_dimensions(rev, (1, 0, 2))\r\n```\r\n\r\nHowever tf.reverse() exists."}}
{"actor":{"display_login":"djstrong"}}