payload: {"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/addons/issues/243","repository_url":"https://api.github.com/repos/tensorflow/addons","labels_url":"https://api.github.com/repos/tensorflow/addons/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/addons/issues/243/comments","events_url":"https://api.github.com/repos/tensorflow/addons/issues/243/events","html_url":"https://github.com/tensorflow/addons/issues/243","id":443489846,"node_id":"MDU6SXNzdWU0NDM0ODk4NDY=","number":243,"title":"Make image transforms compatible with TF Dataset","user":{"login":"seanpmorgan","id":18154355,"node_id":"MDQ6VXNlcjE4MTU0MzU1","avatar_url":"https://avatars3.githubusercontent.com/u/18154355?v=4","gravatar_id":"","url":"https://api.github.com/users/seanpmorgan","html_url":"https://github.com/seanpmorgan","followers_url":"https://api.github.com/users/seanpmorgan/followers","following_url":"https://api.github.com/users/seanpmorgan/following{/other_user}","gists_url":"https://api.github.com/users/seanpmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpmorgan/subscriptions","organizations_url":"https://api.github.com/users/seanpmorgan/orgs","repos_url":"https://api.github.com/users/seanpmorgan/repos","events_url":"https://api.github.com/users/seanpmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/seanpmorgan/received_events","type":"User","site_admin":false},"labels":[{"id":1141091842,"node_id":"MDU6TGFiZWwxMTQxMDkxODQy","url":"https://api.github.com/repos/tensorflow/addons/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1186667011,"node_id":"MDU6TGFiZWwxMTg2NjY3MDEx","url":"https://api.github.com/repos/tensorflow/addons/labels/image","name":"image","color":"d87e24","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2019-05-13T16:23:26Z","updated_at":"2019-05-23T16:44:37Z","closed_at":null,"author_association":"MEMBER","body":"From #242 we found that the tfa.image transforms are not compatible with dataset mapping. This is a very likely usecase for tfa.image so we need to address this. Here is a minimal example showing the differences in tfa.rotate(pi/2) and tf.image.rot90:\r\nhttps://colab.research.google.com/drive/1ZDhnGrorvSf04wzS-0utztZ6Nnzusvl7\r\n\r\nProblems seem to occur because Dataset mapping runs in graph mode and this check fails:\r\nhttps://github.com/tensorflow/addons/blob/master/tensorflow_addons/image/transform_ops.py#L323\r\n\r\nBy comparison here is tf.image.rot90:\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_impl.py#L514\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/addons/issues/comments/495296161","html_url":"https://github.com/tensorflow/addons/issues/243#issuecomment-495296161","issue_url":"https://api.github.com/repos/tensorflow/addons/issues/243","id":495296161,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NTI5NjE2MQ==","user":{"login":"karmel","id":667809,"node_id":"MDQ6VXNlcjY2NzgwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/667809?v=4","gravatar_id":"","url":"https://api.github.com/users/karmel","html_url":"https://github.com/karmel","followers_url":"https://api.github.com/users/karmel/followers","following_url":"https://api.github.com/users/karmel/following{/other_user}","gists_url":"https://api.github.com/users/karmel/gists{/gist_id}","starred_url":"https://api.github.com/users/karmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmel/subscriptions","organizations_url":"https://api.github.com/users/karmel/orgs","repos_url":"https://api.github.com/users/karmel/repos","events_url":"https://api.github.com/users/karmel/events{/privacy}","received_events_url":"https://api.github.com/users/karmel/received_events","type":"User","site_admin":false},"created_at":"2019-05-23T16:44:37Z","updated_at":"2019-05-23T16:44:37Z","author_association":"MEMBER","body":"@jsimsa -- can you advise?"}}
other: {"actor":{"display_login":"karmel"}}