payload: {"action":"created","comment":{"url":"https://api.github.com/repos/tensorflow/models/pulls/comments/315508796","pull_request_review_id":276934068,"id":315508796,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNTUwODc5Ng==","diff_hunk":"@@ -376,6 +376,12 @@ def _create_optimizer(self):\n       opt = tf.keras.mixed_precision.experimental.LossScaleOptimizer(\n           opt, loss_scale=flags_core.get_loss_scale(self.flags_obj,\n                                                     default_for_fp16=\"dynamic\"))\n+    if self.flags_obj.automatic_mixed_precision:","path":"official/transformer/v2/transformer_main.py","position":4,"original_position":4,"commit_id":"8f526987def71ea4583c6d3a3d836ee897a02838","original_commit_id":"8f526987def71ea4583c6d3a3d836ee897a02838","user":{"login":"vinhngx","id":7205508,"node_id":"MDQ6VXNlcjcyMDU1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7205508?v=4","gravatar_id":"","url":"https://api.github.com/users/vinhngx","html_url":"https://github.com/vinhngx","followers_url":"https://api.github.com/users/vinhngx/followers","following_url":"https://api.github.com/users/vinhngx/following{/other_user}","gists_url":"https://api.github.com/users/vinhngx/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhngx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhngx/subscriptions","organizations_url":"https://api.github.com/users/vinhngx/orgs","repos_url":"https://api.github.com/users/vinhngx/repos","events_url":"https://api.github.com/users/vinhngx/events{/privacy}","received_events_url":"https://api.github.com/users/vinhngx/received_events","type":"User","site_admin":false},"body":"yes I'm moving this to using the graph_rewrite flag as well. Marking this PR as WIP till ready. Thanks.","created_at":"2019-08-20T05:12:47Z","updated_at":"2019-08-20T05:12:48Z","html_url":"https://github.com/tensorflow/models/pull/7419#discussion_r315508796","pull_request_url":"https://api.github.com/repos/tensorflow/models/pulls/7419","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tensorflow/models/pulls/comments/315508796"},"html":{"href":"https://github.com/tensorflow/models/pull/7419#discussion_r315508796"},"pull_request":{"href":"https://api.github.com/repos/tensorflow/models/pulls/7419"}},"in_reply_to_id":315503560},"pull_request":{"url":"https://api.github.com/repos/tensorflow/models/pulls/7419","id":305870971,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA1ODcwOTcx","html_url":"https://github.com/tensorflow/models/pull/7419","diff_url":"https://github.com/tensorflow/models/pull/7419.diff","patch_url":"https://github.com/tensorflow/models/pull/7419.patch","issue_url":"https://api.github.com/repos/tensorflow/models/issues/7419","number":7419,"state":"open","locked":false,"title":"[WIP-TF2.0] Adding automatic mixed precision training (via graph rewrite) support to Resnet & Transformer","user":{"login":"vinhngx","id":7205508,"node_id":"MDQ6VXNlcjcyMDU1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7205508?v=4","gravatar_id":"","url":"https://api.github.com/users/vinhngx","html_url":"https://github.com/vinhngx","followers_url":"https://api.github.com/users/vinhngx/followers","following_url":"https://api.github.com/users/vinhngx/following{/other_user}","gists_url":"https://api.github.com/users/vinhngx/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhngx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhngx/subscriptions","organizations_url":"https://api.github.com/users/vinhngx/orgs","repos_url":"https://api.github.com/users/vinhngx/repos","events_url":"https://api.github.com/users/vinhngx/events{/privacy}","received_events_url":"https://api.github.com/users/vinhngx/received_events","type":"User","site_admin":false},"body":"Automatic Mixed Precision for TensorFlow has recently been introduced:\r\nhttps://medium.com/tensorflow/automatic-mixed-precision-in-tensorflow-for-faster-ai-training-on-nvidia-gpus-6033234b2540\r\n\r\nThis PR adds automatic mixed precision training to Resnet via setting an appropriate flag:\r\n```\r\npython3 keras_imagenet_main.py --automatic_mixed_precision\r\n```\r\n\r\nAutomatic mixed precision should not be used in conjunction with other mixed precision training options, such as Keras mixed precision Policy, which is set via '--dtype=fp16'.","created_at":"2019-08-09T07:30:32Z","updated_at":"2019-08-20T05:12:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d58146d467b4c7459c1e3bc52dc7034d4d926258","assignee":null,"assignees":[],"requested_reviewers":[{"login":"saberkun","id":4873189,"node_id":"MDQ6VXNlcjQ4NzMxODk=","avatar_url":"https://avatars3.githubusercontent.com/u/4873189?v=4","gravatar_id":"","url":"https://api.github.com/users/saberkun","html_url":"https://github.com/saberkun","followers_url":"https://api.github.com/users/saberkun/followers","following_url":"https://api.github.com/users/saberkun/following{/other_user}","gists_url":"https://api.github.com/users/saberkun/gists{/gist_id}","starred_url":"https://api.github.com/users/saberkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saberkun/subscriptions","organizations_url":"https://api.github.com/users/saberkun/orgs","repos_url":"https://api.github.com/users/saberkun/repos","events_url":"https://api.github.com/users/saberkun/events{/privacy}","received_events_url":"https://api.github.com/users/saberkun/received_events","type":"User","site_admin":false},{"login":"guptapriya","id":14104855,"node_id":"MDQ6VXNlcjE0MTA0ODU1","avatar_url":"https://avatars1.githubusercontent.com/u/14104855?v=4","gravatar_id":"","url":"https://api.github.com/users/guptapriya","html_url":"https://github.com/guptapriya","followers_url":"https://api.github.com/users/guptapriya/followers","following_url":"https://api.github.com/users/guptapriya/following{/other_user}","gists_url":"https://api.github.com/users/guptapriya/gists{/gist_id}","starred_url":"https://api.github.com/users/guptapriya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guptapriya/subscriptions","organizations_url":"https://api.github.com/users/guptapriya/orgs","repos_url":"https://api.github.com/users/guptapriya/repos","events_url":"https://api.github.com/users/guptapriya/events{/privacy}","received_events_url":"https://api.github.com/users/guptapriya/received_events","type":"User","site_admin":false},{"login":"rachellj218","id":42055825,"node_id":"MDQ6VXNlcjQyMDU1ODI1","avatar_url":"https://avatars1.githubusercontent.com/u/42055825?v=4","gravatar_id":"","url":"https://api.github.com/users/rachellj218","html_url":"https://github.com/rachellj218","followers_url":"https://api.github.com/users/rachellj218/followers","following_url":"https://api.github.com/users/rachellj218/following{/other_user}","gists_url":"https://api.github.com/users/rachellj218/gists{/gist_id}","starred_url":"https://api.github.com/users/rachellj218/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachellj218/subscriptions","organizations_url":"https://api.github.com/users/rachellj218/orgs","repos_url":"https://api.github.com/users/rachellj218/repos","events_url":"https://api.github.com/users/rachellj218/events{/privacy}","received_events_url":"https://api.github.com/users/rachellj218/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":337864321,"node_id":"MDU6TGFiZWwzMzc4NjQzMjE=","url":"https://api.github.com/repos/tensorflow/models/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tensorflow/models/pulls/7419/commits","review_comments_url":"https://api.github.com/repos/tensorflow/models/pulls/7419/comments","review_comment_url":"https://api.github.com/repos/tensorflow/models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/7419/comments","statuses_url":"https://api.github.com/repos/tensorflow/models/statuses/8f526987def71ea4583c6d3a3d836ee897a02838","head":{"label":"vinhngx:amp_resnet50","ref":"amp_resnet50","sha":"8f526987def71ea4583c6d3a3d836ee897a02838","user":{"login":"vinhngx","id":7205508,"node_id":"MDQ6VXNlcjcyMDU1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7205508?v=4","gravatar_id":"","url":"https://api.github.com/users/vinhngx","html_url":"https://github.com/vinhngx","followers_url":"https://api.github.com/users/vinhngx/followers","following_url":"https://api.github.com/users/vinhngx/following{/other_user}","gists_url":"https://api.github.com/users/vinhngx/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhngx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhngx/subscriptions","organizations_url":"https://api.github.com/users/vinhngx/orgs","repos_url":"https://api.github.com/users/vinhngx/repos","events_url":"https://api.github.com/users/vinhngx/events{/privacy}","received_events_url":"https://api.github.com/users/vinhngx/received_events","type":"User","site_admin":false},"repo":{"id":156709956,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3MDk5NTY=","name":"models","full_name":"vinhngx/models","private":false,"owner":{"login":"vinhngx","id":7205508,"node_id":"MDQ6VXNlcjcyMDU1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7205508?v=4","gravatar_id":"","url":"https://api.github.com/users/vinhngx","html_url":"https://github.com/vinhngx","followers_url":"https://api.github.com/users/vinhngx/followers","following_url":"https://api.github.com/users/vinhngx/following{/other_user}","gists_url":"https://api.github.com/users/vinhngx/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhngx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhngx/subscriptions","organizations_url":"https://api.github.com/users/vinhngx/orgs","repos_url":"https://api.github.com/users/vinhngx/repos","events_url":"https://api.github.com/users/vinhngx/events{/privacy}","received_events_url":"https://api.github.com/users/vinhngx/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vinhngx/models","description":"Models and examples built with TensorFlow","fork":true,"url":"https://api.github.com/repos/vinhngx/models","forks_url":"https://api.github.com/repos/vinhngx/models/forks","keys_url":"https://api.github.com/repos/vinhngx/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinhngx/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinhngx/models/teams","hooks_url":"https://api.github.com/repos/vinhngx/models/hooks","issue_events_url":"https://api.github.com/repos/vinhngx/models/issues/events{/number}","events_url":"https://api.github.com/repos/vinhngx/models/events","assignees_url":"https://api.github.com/repos/vinhngx/models/assignees{/user}","branches_url":"https://api.github.com/repos/vinhngx/models/branches{/branch}","tags_url":"https://api.github.com/repos/vinhngx/models/tags","blobs_url":"https://api.github.com/repos/vinhngx/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinhngx/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinhngx/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinhngx/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinhngx/models/statuses/{sha}","languages_url":"https://api.github.com/repos/vinhngx/models/languages","stargazers_url":"https://api.github.com/repos/vinhngx/models/stargazers","contributors_url":"https://api.github.com/repos/vinhngx/models/contributors","subscribers_url":"https://api.github.com/repos/vinhngx/models/subscribers","subscription_url":"https://api.github.com/repos/vinhngx/models/subscription","commits_url":"https://api.github.com/repos/vinhngx/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinhngx/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinhngx/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinhngx/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinhngx/models/contents/{+path}","compare_url":"https://api.github.com/repos/vinhngx/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinhngx/models/merges","archive_url":"https://api.github.com/repos/vinhngx/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinhngx/models/downloads","issues_url":"https://api.github.com/repos/vinhngx/models/issues{/number}","pulls_url":"https://api.github.com/repos/vinhngx/models/pulls{/number}","milestones_url":"https://api.github.com/repos/vinhngx/models/milestones{/number}","notifications_url":"https://api.github.com/repos/vinhngx/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinhngx/models/labels{/name}","releases_url":"https://api.github.com/repos/vinhngx/models/releases{/id}","deployments_url":"https://api.github.com/repos/vinhngx/models/deployments","created_at":"2018-11-08T13:18:48Z","updated_at":"2019-08-09T07:00:35Z","pushed_at":"2019-08-20T02:45:32Z","git_url":"git://github.com/vinhngx/models.git","ssh_url":"git@github.com:vinhngx/models.git","clone_url":"https://github.com/vinhngx/models.git","svn_url":"https://github.com/vinhngx/models","homepage":"","size":581116,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tensorflow:master","ref":"master","sha":"824ff2d637b807465dc7d48130d086b4e7df19c7","user":{"login":"tensorflow","id":15658638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjU4NjM4","avatar_url":"https://avatars1.githubusercontent.com/u/15658638?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"repo":{"id":51117837,"node_id":"MDEwOlJlcG9zaXRvcnk1MTExNzgzNw==","name":"models","full_name":"tensorflow/models","private":false,"owner":{"login":"tensorflow","id":15658638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjU4NjM4","avatar_url":"https://avatars1.githubusercontent.com/u/15658638?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tensorflow/models","description":"Models and examples built with TensorFlow","fork":false,"url":"https://api.github.com/repos/tensorflow/models","forks_url":"https://api.github.com/repos/tensorflow/models/forks","keys_url":"https://api.github.com/repos/tensorflow/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorflow/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorflow/models/teams","hooks_url":"https://api.github.com/repos/tensorflow/models/hooks","issue_events_url":"https://api.github.com/repos/tensorflow/models/issues/events{/number}","events_url":"https://api.github.com/repos/tensorflow/models/events","assignees_url":"https://api.github.com/repos/tensorflow/models/assignees{/user}","branches_url":"https://api.github.com/repos/tensorflow/models/branches{/branch}","tags_url":"https://api.github.com/repos/tensorflow/models/tags","blobs_url":"https://api.github.com/repos/tensorflow/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorflow/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorflow/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorflow/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorflow/models/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorflow/models/languages","stargazers_url":"https://api.github.com/repos/tensorflow/models/stargazers","contributors_url":"https://api.github.com/repos/tensorflow/models/contributors","subscribers_url":"https://api.github.com/repos/tensorflow/models/subscribers","subscription_url":"https://api.github.com/repos/tensorflow/models/subscription","commits_url":"https://api.github.com/repos/tensorflow/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorflow/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorflow/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorflow/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorflow/models/contents/{+path}","compare_url":"https://api.github.com/repos/tensorflow/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorflow/models/merges","archive_url":"https://api.github.com/repos/tensorflow/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorflow/models/downloads","issues_url":"https://api.github.com/repos/tensorflow/models/issues{/number}","pulls_url":"https://api.github.com/repos/tensorflow/models/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorflow/models/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorflow/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorflow/models/labels{/name}","releases_url":"https://api.github.com/repos/tensorflow/models/releases{/id}","deployments_url":"https://api.github.com/repos/tensorflow/models/deployments","created_at":"2016-02-05T01:15:20Z","updated_at":"2019-08-20T04:14:47Z","pushed_at":"2019-08-20T05:03:27Z","git_url":"git://github.com/tensorflow/models.git","ssh_url":"git@github.com:tensorflow/models.git","clone_url":"https://github.com/tensorflow/models.git","svn_url":"https://github.com/tensorflow/models","homepage":"","size":522516,"stargazers_count":56608,"watchers_count":56608,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35466,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1832,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":35466,"open_issues":1832,"watchers":56608,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorflow/models/pulls/7419"},"html":{"href":"https://github.com/tensorflow/models/pull/7419"},"issue":{"href":"https://api.github.com/repos/tensorflow/models/issues/7419"},"comments":{"href":"https://api.github.com/repos/tensorflow/models/issues/7419/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorflow/models/pulls/7419/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorflow/models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorflow/models/pulls/7419/commits"},"statuses":{"href":"https://api.github.com/repos/tensorflow/models/statuses/8f526987def71ea4583c6d3a3d836ee897a02838"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"vinhngx"}}