{"action":"created","comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/217244339","pull_request_review_id":154909596,"id":217244339,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzI0NDMzOQ==","diff_hunk":"@@ -86,7 +87,8 @@ def report_uninitialized_resources(resource_list=None,\n     resource_list = shared_resources() + local_resources()\n   with ops.name_scope(name):\n     # Run all operations on CPU\n-    with ops.device(\"/cpu:0\"):\n+    local_device = os.environ.get(\"TF_LOCAL_DEVICE\", \"/cpu:0\")","path":"tensorflow/python/ops/resources.py","position":13,"original_position":13,"commit_id":"5d2226e93d48c1f4a0730edc573b886cc6b87e68","original_commit_id":"5d2226e93d48c1f4a0730edc573b886cc6b87e68","user":{"login":"jackonan","id":9108860,"node_id":"MDQ6VXNlcjkxMDg4NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9108860?v=4","gravatar_id":"","url":"https://api.github.com/users/jackonan","html_url":"https://github.com/jackonan","followers_url":"https://api.github.com/users/jackonan/followers","following_url":"https://api.github.com/users/jackonan/following{/other_user}","gists_url":"https://api.github.com/users/jackonan/gists{/gist_id}","starred_url":"https://api.github.com/users/jackonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackonan/subscriptions","organizations_url":"https://api.github.com/users/jackonan/orgs","repos_url":"https://api.github.com/users/jackonan/repos","events_url":"https://api.github.com/users/jackonan/events{/privacy}","received_events_url":"https://api.github.com/users/jackonan/received_events","type":"User","site_admin":false},"body":"Here is the issue. https://github.com/tensorflow/tensorflow/issues/22137","created_at":"2018-09-13T02:27:25Z","updated_at":"2018-09-13T02:27:25Z","html_url":"https://github.com/tensorflow/tensorflow/pull/22136#discussion_r217244339","pull_request_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/217244339"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/22136#discussion_r217244339"},"pull_request":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136"}},"in_reply_to_id":217228241},"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136","id":213801575,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzODAxNTc1","html_url":"https://github.com/tensorflow/tensorflow/pull/22136","diff_url":"https://github.com/tensorflow/tensorflow/pull/22136.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/22136.patch","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22136","number":22136,"state":"open","locked":false,"title":"Fix ps0 OOM when workers too many.","user":{"login":"jackonan","id":9108860,"node_id":"MDQ6VXNlcjkxMDg4NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9108860?v=4","gravatar_id":"","url":"https://api.github.com/users/jackonan","html_url":"https://github.com/jackonan","followers_url":"https://api.github.com/users/jackonan/followers","following_url":"https://api.github.com/users/jackonan/following{/other_user}","gists_url":"https://api.github.com/users/jackonan/gists{/gist_id}","starred_url":"https://api.github.com/users/jackonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackonan/subscriptions","organizations_url":"https://api.github.com/users/jackonan/orgs","repos_url":"https://api.github.com/users/jackonan/repos","events_url":"https://api.github.com/users/jackonan/events{/privacy}","received_events_url":"https://api.github.com/users/jackonan/received_events","type":"User","site_admin":false},"body":"When training with MonitoredTrainingSession in distributed mode,\r\nall ops related with report_uninitialized_xxx will be placed on ps0,\r\nwhich may lead to OOM when workers up to thousands.\r\n\r\nWe use a environment variable to solve it. When OOM happens, users can\r\nset the local device to fix the problem, such as\r\nos.environ['TF_LOCAL_DEVICE'] = '/job:worker/task:index'.","created_at":"2018-09-07T02:44:40Z","updated_at":"2018-09-13T02:27:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3de854d407055012d797ea3960804de5741e34a2","assignee":{"login":"martinwicke","id":577277,"node_id":"MDQ6VXNlcjU3NzI3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/577277?v=4","gravatar_id":"","url":"https://api.github.com/users/martinwicke","html_url":"https://github.com/martinwicke","followers_url":"https://api.github.com/users/martinwicke/followers","following_url":"https://api.github.com/users/martinwicke/following{/other_user}","gists_url":"https://api.github.com/users/martinwicke/gists{/gist_id}","starred_url":"https://api.github.com/users/martinwicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinwicke/subscriptions","organizations_url":"https://api.github.com/users/martinwicke/orgs","repos_url":"https://api.github.com/users/martinwicke/repos","events_url":"https://api.github.com/users/martinwicke/events{/privacy}","received_events_url":"https://api.github.com/users/martinwicke/received_events","type":"User","site_admin":false},"assignees":[{"login":"martinwicke","id":577277,"node_id":"MDQ6VXNlcjU3NzI3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/577277?v=4","gravatar_id":"","url":"https://api.github.com/users/martinwicke","html_url":"https://github.com/martinwicke","followers_url":"https://api.github.com/users/martinwicke/followers","following_url":"https://api.github.com/users/martinwicke/following{/other_user}","gists_url":"https://api.github.com/users/martinwicke/gists{/gist_id}","starred_url":"https://api.github.com/users/martinwicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinwicke/subscriptions","organizations_url":"https://api.github.com/users/martinwicke/orgs","repos_url":"https://api.github.com/users/martinwicke/repos","events_url":"https://api.github.com/users/martinwicke/events{/privacy}","received_events_url":"https://api.github.com/users/martinwicke/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":300136587,"node_id":"MDU6TGFiZWwzMDAxMzY1ODc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136/commits","review_comments_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136/comments","review_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22136/comments","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/5d2226e93d48c1f4a0730edc573b886cc6b87e68","head":{"label":"jackonan:master","ref":"master","sha":"5d2226e93d48c1f4a0730edc573b886cc6b87e68","user":{"login":"jackonan","id":9108860,"node_id":"MDQ6VXNlcjkxMDg4NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9108860?v=4","gravatar_id":"","url":"https://api.github.com/users/jackonan","html_url":"https://github.com/jackonan","followers_url":"https://api.github.com/users/jackonan/followers","following_url":"https://api.github.com/users/jackonan/following{/other_user}","gists_url":"https://api.github.com/users/jackonan/gists{/gist_id}","starred_url":"https://api.github.com/users/jackonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackonan/subscriptions","organizations_url":"https://api.github.com/users/jackonan/orgs","repos_url":"https://api.github.com/users/jackonan/repos","events_url":"https://api.github.com/users/jackonan/events{/privacy}","received_events_url":"https://api.github.com/users/jackonan/received_events","type":"User","site_admin":false},"repo":{"id":141651240,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NTEyNDA=","name":"tensorflow","full_name":"jackonan/tensorflow","owner":{"login":"jackonan","id":9108860,"node_id":"MDQ6VXNlcjkxMDg4NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9108860?v=4","gravatar_id":"","url":"https://api.github.com/users/jackonan","html_url":"https://github.com/jackonan","followers_url":"https://api.github.com/users/jackonan/followers","following_url":"https://api.github.com/users/jackonan/following{/other_user}","gists_url":"https://api.github.com/users/jackonan/gists{/gist_id}","starred_url":"https://api.github.com/users/jackonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackonan/subscriptions","organizations_url":"https://api.github.com/users/jackonan/orgs","repos_url":"https://api.github.com/users/jackonan/repos","events_url":"https://api.github.com/users/jackonan/events{/privacy}","received_events_url":"https://api.github.com/users/jackonan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackonan/tensorflow","description":"Computation using data flow graphs for scalable machine learning","fork":true,"url":"https://api.github.com/repos/jackonan/tensorflow","forks_url":"https://api.github.com/repos/jackonan/tensorflow/forks","keys_url":"https://api.github.com/repos/jackonan/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackonan/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackonan/tensorflow/teams","hooks_url":"https://api.github.com/repos/jackonan/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/jackonan/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/jackonan/tensorflow/events","assignees_url":"https://api.github.com/repos/jackonan/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/jackonan/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/jackonan/tensorflow/tags","blobs_url":"https://api.github.com/repos/jackonan/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackonan/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackonan/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackonan/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackonan/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/jackonan/tensorflow/languages","stargazers_url":"https://api.github.com/repos/jackonan/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/jackonan/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/jackonan/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/jackonan/tensorflow/subscription","commits_url":"https://api.github.com/repos/jackonan/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackonan/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackonan/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackonan/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackonan/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/jackonan/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackonan/tensorflow/merges","archive_url":"https://api.github.com/repos/jackonan/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackonan/tensorflow/downloads","issues_url":"https://api.github.com/repos/jackonan/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/jackonan/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/jackonan/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/jackonan/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackonan/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/jackonan/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/jackonan/tensorflow/deployments","created_at":"2018-07-20T02:04:47Z","updated_at":"2018-09-07T02:43:25Z","pushed_at":"2018-09-07T02:43:21Z","git_url":"git://github.com/jackonan/tensorflow.git","ssh_url":"git@github.com:jackonan/tensorflow.git","clone_url":"https://github.com/jackonan/tensorflow.git","svn_url":"https://github.com/jackonan/tensorflow","homepage":"https://tensorflow.org","size":183482,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":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":"b0cd701121d63cacec498c2b097b0489fd529068","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":45717250,"node_id":"MDEwOlJlcG9zaXRvcnk0NTcxNzI1MA==","name":"tensorflow","full_name":"tensorflow/tensorflow","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},"private":false,"html_url":"https://github.com/tensorflow/tensorflow","description":"An Open Source Machine Learning Framework for Everyone","fork":false,"url":"https://api.github.com/repos/tensorflow/tensorflow","forks_url":"https://api.github.com/repos/tensorflow/tensorflow/forks","keys_url":"https://api.github.com/repos/tensorflow/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorflow/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorflow/tensorflow/teams","hooks_url":"https://api.github.com/repos/tensorflow/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/tensorflow/tensorflow/events","assignees_url":"https://api.github.com/repos/tensorflow/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/tensorflow/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/tensorflow/tensorflow/tags","blobs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorflow/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorflow/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorflow/tensorflow/languages","stargazers_url":"https://api.github.com/repos/tensorflow/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/tensorflow/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/tensorflow/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/tensorflow/tensorflow/subscription","commits_url":"https://api.github.com/repos/tensorflow/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorflow/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorflow/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/tensorflow/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorflow/tensorflow/merges","archive_url":"https://api.github.com/repos/tensorflow/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorflow/tensorflow/downloads","issues_url":"https://api.github.com/repos/tensorflow/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorflow/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorflow/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/tensorflow/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/tensorflow/tensorflow/deployments","created_at":"2015-11-07T01:19:20Z","updated_at":"2018-09-13T02:10:57Z","pushed_at":"2018-09-13T02:08:42Z","git_url":"git://github.com/tensorflow/tensorflow.git","ssh_url":"git@github.com:tensorflow/tensorflow.git","clone_url":"https://github.com/tensorflow/tensorflow.git","svn_url":"https://github.com/tensorflow/tensorflow","homepage":"https://tensorflow.org","size":255267,"stargazers_count":109337,"watchers_count":109337,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":67464,"mirror_url":null,"archived":false,"open_issues_count":1844,"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":67464,"open_issues":1844,"watchers":109337,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/22136"},"issue":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/22136"},"comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/22136/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/22136/commits"},"statuses":{"href":"https://api.github.com/repos/tensorflow/tensorflow/statuses/5d2226e93d48c1f4a0730edc573b886cc6b87e68"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jackonan"}}