{"action":"created","comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/54335677","id":54335677,"diff_hunk":"@@ -422,38 +422,44 @@\n         \"graph = tf.Graph()\\n\",\n         \"\\n\",\n         \"with graph.as_default():\\n\",","path":"tensorflow/examples/udacity/5_word2vec.ipynb","position":3,"original_position":3,"commit_id":"43af6b644c626ba79b7b641f234b544755bedff6","original_commit_id":"43af6b644c626ba79b7b641f234b544755bedff6","user":{"login":"vincentvanhoucke","id":15737127,"avatar_url":"https://avatars.githubusercontent.com/u/15737127?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentvanhoucke","html_url":"https://github.com/vincentvanhoucke","followers_url":"https://api.github.com/users/vincentvanhoucke/followers","following_url":"https://api.github.com/users/vincentvanhoucke/following{/other_user}","gists_url":"https://api.github.com/users/vincentvanhoucke/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentvanhoucke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentvanhoucke/subscriptions","organizations_url":"https://api.github.com/users/vincentvanhoucke/orgs","repos_url":"https://api.github.com/users/vincentvanhoucke/repos","events_url":"https://api.github.com/users/vincentvanhoucke/events{/privacy}","received_events_url":"https://api.github.com/users/vincentvanhoucke/received_events","type":"User","site_admin":false},"body":"Thanks for doing this. May I ask you to do it on one line instead:\r\n  with graph.as_default(), tf.device('/cpu:0'):\r\nthat will remove all the space changes.\r\n","created_at":"2016-02-27T16:56:57Z","updated_at":"2016-02-27T16:56:57Z","html_url":"https://github.com/tensorflow/tensorflow/pull/1315#discussion_r54335677","pull_request_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315","_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/54335677"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/1315#discussion_r54335677"},"pull_request":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315"}}},"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315","id":60943932,"html_url":"https://github.com/tensorflow/tensorflow/pull/1315","diff_url":"https://github.com/tensorflow/tensorflow/pull/1315.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/1315.patch","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1315","number":1315,"state":"open","locked":false,"title":"Assign graph to cpu in example/udacity/5_word2vec.","user":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"body":"Here's what I think is a fix for [1297](https://github.com/tensorflow/tensorflow/issues/1297). Please see the issue for discussion.\r\n\r\nIf there's a way to do this without all the whitespace changes please let me know. I'm new to Python. The only real change is addition of the `with tf.device():` statement.\r\n","created_at":"2016-02-27T09:28:22Z","updated_at":"2016-02-27T16:56:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59c9b85e8dabf6c4b78f17a939ec3f01e112d489","assignee":{"login":"vincentvanhoucke","id":15737127,"avatar_url":"https://avatars.githubusercontent.com/u/15737127?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentvanhoucke","html_url":"https://github.com/vincentvanhoucke","followers_url":"https://api.github.com/users/vincentvanhoucke/followers","following_url":"https://api.github.com/users/vincentvanhoucke/following{/other_user}","gists_url":"https://api.github.com/users/vincentvanhoucke/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentvanhoucke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentvanhoucke/subscriptions","organizations_url":"https://api.github.com/users/vincentvanhoucke/orgs","repos_url":"https://api.github.com/users/vincentvanhoucke/repos","events_url":"https://api.github.com/users/vincentvanhoucke/events{/privacy}","received_events_url":"https://api.github.com/users/vincentvanhoucke/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315/commits","review_comments_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315/comments","review_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1315/comments","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/43af6b644c626ba79b7b641f234b544755bedff6","head":{"label":"jyegerlehner:udacity-5-gpu-fix","ref":"udacity-5-gpu-fix","sha":"43af6b644c626ba79b7b641f234b544755bedff6","user":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"repo":{"id":45944217,"name":"tensorflow","full_name":"jyegerlehner/tensorflow","owner":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jyegerlehner/tensorflow","description":" Open source software library for numerical computation using data flow graphs.","fork":true,"url":"https://api.github.com/repos/jyegerlehner/tensorflow","forks_url":"https://api.github.com/repos/jyegerlehner/tensorflow/forks","keys_url":"https://api.github.com/repos/jyegerlehner/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jyegerlehner/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jyegerlehner/tensorflow/teams","hooks_url":"https://api.github.com/repos/jyegerlehner/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/jyegerlehner/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/jyegerlehner/tensorflow/events","assignees_url":"https://api.github.com/repos/jyegerlehner/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/jyegerlehner/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/jyegerlehner/tensorflow/tags","blobs_url":"https://api.github.com/repos/jyegerlehner/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jyegerlehner/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jyegerlehner/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/jyegerlehner/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jyegerlehner/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/jyegerlehner/tensorflow/languages","stargazers_url":"https://api.github.com/repos/jyegerlehner/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/jyegerlehner/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/jyegerlehner/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/jyegerlehner/tensorflow/subscription","commits_url":"https://api.github.com/repos/jyegerlehner/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/jyegerlehner/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/jyegerlehner/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/jyegerlehner/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/jyegerlehner/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/jyegerlehner/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jyegerlehner/tensorflow/merges","archive_url":"https://api.github.com/repos/jyegerlehner/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jyegerlehner/tensorflow/downloads","issues_url":"https://api.github.com/repos/jyegerlehner/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/jyegerlehner/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/jyegerlehner/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/jyegerlehner/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jyegerlehner/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/jyegerlehner/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/jyegerlehner/tensorflow/deployments","created_at":"2015-11-10T22:23:48Z","updated_at":"2015-11-10T22:23:55Z","pushed_at":"2016-02-27T09:14:54Z","git_url":"git://github.com/jyegerlehner/tensorflow.git","ssh_url":"git@github.com:jyegerlehner/tensorflow.git","clone_url":"https://github.com/jyegerlehner/tensorflow.git","svn_url":"https://github.com/jyegerlehner/tensorflow","homepage":"http://tensorflow.org","size":77258,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tensorflow:master","ref":"master","sha":"77c2042e77a11ee442ecc7e369cd91d91e4a98c3","user":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","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,"name":"tensorflow","full_name":"tensorflow/tensorflow","owner":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","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":"Computation using data flow graphs for scalable machine learning","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":"2016-02-27T16:54:32Z","pushed_at":"2016-02-27T14:13:54Z","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":"http://tensorflow.org","size":127524,"stargazers_count":18793,"watchers_count":18793,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6308,"mirror_url":null,"open_issues_count":309,"forks":6308,"open_issues":309,"watchers":18793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/1315"},"issue":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/1315"},"comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/1315/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/1315/commits"},"statuses":{"href":"https://api.github.com/repos/tensorflow/tensorflow/statuses/43af6b644c626ba79b7b641f234b544755bedff6"}}}}