{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8653","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8653/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8653/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8653/events","html_url":"https://github.com/tensorflow/tensorflow/pull/8653","id":216365307,"number":8653,"title":"Add the sched_getaffinity support for Android.","user":{"login":"qjivy","id":24410810,"avatar_url":"https://avatars1.githubusercontent.com/u/24410810?v=3","gravatar_id":"","url":"https://api.github.com/users/qjivy","html_url":"https://github.com/qjivy","followers_url":"https://api.github.com/users/qjivy/followers","following_url":"https://api.github.com/users/qjivy/following{/other_user}","gists_url":"https://api.github.com/users/qjivy/gists{/gist_id}","starred_url":"https://api.github.com/users/qjivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qjivy/subscriptions","organizations_url":"https://api.github.com/users/qjivy/orgs","repos_url":"https://api.github.com/users/qjivy/repos","events_url":"https://api.github.com/users/qjivy/events{/privacy}","received_events_url":"https://api.github.com/users/qjivy/received_events","type":"User","site_admin":false},"labels":[{"id":390482148,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review","name":"awaiting review","color":"fef2c0","default":false},{"id":300136587,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false},{"id":404586594,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower","name":"stat:awaiting tensorflower","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"andrewharp","id":3376817,"avatar_url":"https://avatars2.githubusercontent.com/u/3376817?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewharp","html_url":"https://github.com/andrewharp","followers_url":"https://api.github.com/users/andrewharp/followers","following_url":"https://api.github.com/users/andrewharp/following{/other_user}","gists_url":"https://api.github.com/users/andrewharp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewharp/subscriptions","organizations_url":"https://api.github.com/users/andrewharp/orgs","repos_url":"https://api.github.com/users/andrewharp/repos","events_url":"https://api.github.com/users/andrewharp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewharp/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewharp","id":3376817,"avatar_url":"https://avatars2.githubusercontent.com/u/3376817?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewharp","html_url":"https://github.com/andrewharp","followers_url":"https://api.github.com/users/andrewharp/followers","following_url":"https://api.github.com/users/andrewharp/following{/other_user}","gists_url":"https://api.github.com/users/andrewharp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewharp/subscriptions","organizations_url":"https://api.github.com/users/andrewharp/orgs","repos_url":"https://api.github.com/users/andrewharp/repos","events_url":"https://api.github.com/users/andrewharp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewharp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-03-23T09:42:11Z","updated_at":"2017-03-31T22:09:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/8653","html_url":"https://github.com/tensorflow/tensorflow/pull/8653","diff_url":"https://github.com/tensorflow/tensorflow/pull/8653.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/8653.patch"},"body":"Now the NumSchedulableCPUs() always chooses to  return 4 cores for Android, other than try the Bionic supported sched_getaffinity to get the actual available cores. Here I remove the \"!defined(__ANDROID__)\" macro and just keep the \" __linux__\" macro to work for both pure-linux and android-linux platform. \r\nThe reason why we can drop the \"__ANDROID__\" marco is that the GNU toolchain would always has the system-specific predefined macros \"__linux__\"  setting to 1. \r\n "},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/290843660","html_url":"https://github.com/tensorflow/tensorflow/pull/8653#issuecomment-290843660","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8653","id":290843660,"user":{"login":"andrewharp","id":3376817,"avatar_url":"https://avatars2.githubusercontent.com/u/3376817?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewharp","html_url":"https://github.com/andrewharp","followers_url":"https://api.github.com/users/andrewharp/followers","following_url":"https://api.github.com/users/andrewharp/following{/other_user}","gists_url":"https://api.github.com/users/andrewharp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewharp/subscriptions","organizations_url":"https://api.github.com/users/andrewharp/orgs","repos_url":"https://api.github.com/users/andrewharp/repos","events_url":"https://api.github.com/users/andrewharp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewharp/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T22:09:08Z","updated_at":"2017-03-31T22:09:08Z","body":"Please don't merge this yet; while testing this internally I discovered a build issue. Looking into it now."}}
{"actor":{"display_login":"andrewharp"}}