{"action":"closed","number":196,"pull_request":{"url":"https://api.github.com/repos/gcp/leela-zero/pulls/196","id":155073753,"html_url":"https://github.com/gcp/leela-zero/pull/196","diff_url":"https://github.com/gcp/leela-zero/pull/196.diff","patch_url":"https://github.com/gcp/leela-zero/pull/196.patch","issue_url":"https://api.github.com/repos/gcp/leela-zero/issues/196","number":196,"state":"closed","locked":false,"title":"Support mini-batch, CPU, Cuda, CuDNN by using Theano running in a seperated process","user":{"login":"NTT123","id":9960521,"avatar_url":"https://avatars2.githubusercontent.com/u/9960521?v=4","gravatar_id":"","url":"https://api.github.com/users/NTT123","html_url":"https://github.com/NTT123","followers_url":"https://api.github.com/users/NTT123/followers","following_url":"https://api.github.com/users/NTT123/following{/other_user}","gists_url":"https://api.github.com/users/NTT123/gists{/gist_id}","starred_url":"https://api.github.com/users/NTT123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTT123/subscriptions","organizations_url":"https://api.github.com/users/NTT123/orgs","repos_url":"https://api.github.com/users/NTT123/repos","events_url":"https://api.github.com/users/NTT123/events{/privacy}","received_events_url":"https://api.github.com/users/NTT123/received_events","type":"User","site_admin":false},"body":"This is my hack to run the feed forward Net in a separated python process. Leela zero C++ then talks to Leela zero python using UDP connections. Sending UDP packets of the input data. Receiving UDP packets of Output of the Net.\r\n\r\nThis allows us to combine many threads (and processes) of Leela C++ in a single feed forward batch.\r\n\r\nMoreover, using Theano allows us to automatically support multiple backends (CPU, Cuda, CUDNN, ...)\r\n\r\nMy simple benchmarks show ~ 2-3 X speed up compared to Leela C++ OpenCL. (I have a slow Nvidia GPU card, therefore not much benefit from mini-batches.)\r\n\r\nI'm sure that this is an ugly hack but I cannot wait longer to share it with you.\r\n","created_at":"2017-11-28T13:40:56Z","updated_at":"2017-12-29T06:09:11Z","closed_at":"2017-12-29T06:09:11Z","merged_at":null,"merge_commit_sha":"395e199266382fd1ddb08118170c1773b6dead70","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/gcp/leela-zero/pulls/196/commits","review_comments_url":"https://api.github.com/repos/gcp/leela-zero/pulls/196/comments","review_comment_url":"https://api.github.com/repos/gcp/leela-zero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gcp/leela-zero/issues/196/comments","statuses_url":"https://api.github.com/repos/gcp/leela-zero/statuses/adacee29630183ca321f45d149908a4ce0a4bbc0","head":{"label":"NTT123:udpserver","ref":"udpserver","sha":"adacee29630183ca321f45d149908a4ce0a4bbc0","user":{"login":"NTT123","id":9960521,"avatar_url":"https://avatars2.githubusercontent.com/u/9960521?v=4","gravatar_id":"","url":"https://api.github.com/users/NTT123","html_url":"https://github.com/NTT123","followers_url":"https://api.github.com/users/NTT123/followers","following_url":"https://api.github.com/users/NTT123/following{/other_user}","gists_url":"https://api.github.com/users/NTT123/gists{/gist_id}","starred_url":"https://api.github.com/users/NTT123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTT123/subscriptions","organizations_url":"https://api.github.com/users/NTT123/orgs","repos_url":"https://api.github.com/users/NTT123/repos","events_url":"https://api.github.com/users/NTT123/events{/privacy}","received_events_url":"https://api.github.com/users/NTT123/received_events","type":"User","site_admin":false},"repo":{"id":111779954,"name":"leela-zero","full_name":"NTT123/leela-zero","owner":{"login":"NTT123","id":9960521,"avatar_url":"https://avatars2.githubusercontent.com/u/9960521?v=4","gravatar_id":"","url":"https://api.github.com/users/NTT123","html_url":"https://github.com/NTT123","followers_url":"https://api.github.com/users/NTT123/followers","following_url":"https://api.github.com/users/NTT123/following{/other_user}","gists_url":"https://api.github.com/users/NTT123/gists{/gist_id}","starred_url":"https://api.github.com/users/NTT123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTT123/subscriptions","organizations_url":"https://api.github.com/users/NTT123/orgs","repos_url":"https://api.github.com/users/NTT123/repos","events_url":"https://api.github.com/users/NTT123/events{/privacy}","received_events_url":"https://api.github.com/users/NTT123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NTT123/leela-zero","description":"Go engine with no human-provided knowledge, modeled after the AlphaGo Zero paper.","fork":true,"url":"https://api.github.com/repos/NTT123/leela-zero","forks_url":"https://api.github.com/repos/NTT123/leela-zero/forks","keys_url":"https://api.github.com/repos/NTT123/leela-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NTT123/leela-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NTT123/leela-zero/teams","hooks_url":"https://api.github.com/repos/NTT123/leela-zero/hooks","issue_events_url":"https://api.github.com/repos/NTT123/leela-zero/issues/events{/number}","events_url":"https://api.github.com/repos/NTT123/leela-zero/events","assignees_url":"https://api.github.com/repos/NTT123/leela-zero/assignees{/user}","branches_url":"https://api.github.com/repos/NTT123/leela-zero/branches{/branch}","tags_url":"https://api.github.com/repos/NTT123/leela-zero/tags","blobs_url":"https://api.github.com/repos/NTT123/leela-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NTT123/leela-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NTT123/leela-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/NTT123/leela-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NTT123/leela-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/NTT123/leela-zero/languages","stargazers_url":"https://api.github.com/repos/NTT123/leela-zero/stargazers","contributors_url":"https://api.github.com/repos/NTT123/leela-zero/contributors","subscribers_url":"https://api.github.com/repos/NTT123/leela-zero/subscribers","subscription_url":"https://api.github.com/repos/NTT123/leela-zero/subscription","commits_url":"https://api.github.com/repos/NTT123/leela-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/NTT123/leela-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/NTT123/leela-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/NTT123/leela-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/NTT123/leela-zero/contents/{+path}","compare_url":"https://api.github.com/repos/NTT123/leela-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NTT123/leela-zero/merges","archive_url":"https://api.github.com/repos/NTT123/leela-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NTT123/leela-zero/downloads","issues_url":"https://api.github.com/repos/NTT123/leela-zero/issues{/number}","pulls_url":"https://api.github.com/repos/NTT123/leela-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/NTT123/leela-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/NTT123/leela-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NTT123/leela-zero/labels{/name}","releases_url":"https://api.github.com/repos/NTT123/leela-zero/releases{/id}","deployments_url":"https://api.github.com/repos/NTT123/leela-zero/deployments","created_at":"2017-11-23T07:56:37Z","updated_at":"2017-12-26T05:37:55Z","pushed_at":"2017-12-28T23:08:04Z","git_url":"git://github.com/NTT123/leela-zero.git","ssh_url":"git@github.com:NTT123/leela-zero.git","clone_url":"https://github.com/NTT123/leela-zero.git","svn_url":"https://github.com/NTT123/leela-zero","homepage":null,"size":104567,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":5,"default_branch":"udpserver"}},"base":{"label":"gcp:master","ref":"master","sha":"1894e17d8165b8f88b03f704155400091c07db7b","user":{"login":"gcp","id":1104290,"avatar_url":"https://avatars2.githubusercontent.com/u/1104290?v=4","gravatar_id":"","url":"https://api.github.com/users/gcp","html_url":"https://github.com/gcp","followers_url":"https://api.github.com/users/gcp/followers","following_url":"https://api.github.com/users/gcp/following{/other_user}","gists_url":"https://api.github.com/users/gcp/gists{/gist_id}","starred_url":"https://api.github.com/users/gcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcp/subscriptions","organizations_url":"https://api.github.com/users/gcp/orgs","repos_url":"https://api.github.com/users/gcp/repos","events_url":"https://api.github.com/users/gcp/events{/privacy}","received_events_url":"https://api.github.com/users/gcp/received_events","type":"User","site_admin":false},"repo":{"id":108166281,"name":"leela-zero","full_name":"gcp/leela-zero","owner":{"login":"gcp","id":1104290,"avatar_url":"https://avatars2.githubusercontent.com/u/1104290?v=4","gravatar_id":"","url":"https://api.github.com/users/gcp","html_url":"https://github.com/gcp","followers_url":"https://api.github.com/users/gcp/followers","following_url":"https://api.github.com/users/gcp/following{/other_user}","gists_url":"https://api.github.com/users/gcp/gists{/gist_id}","starred_url":"https://api.github.com/users/gcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcp/subscriptions","organizations_url":"https://api.github.com/users/gcp/orgs","repos_url":"https://api.github.com/users/gcp/repos","events_url":"https://api.github.com/users/gcp/events{/privacy}","received_events_url":"https://api.github.com/users/gcp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gcp/leela-zero","description":"Go engine with no human-provided knowledge, modeled after the AlphaGo Zero paper.","fork":false,"url":"https://api.github.com/repos/gcp/leela-zero","forks_url":"https://api.github.com/repos/gcp/leela-zero/forks","keys_url":"https://api.github.com/repos/gcp/leela-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gcp/leela-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gcp/leela-zero/teams","hooks_url":"https://api.github.com/repos/gcp/leela-zero/hooks","issue_events_url":"https://api.github.com/repos/gcp/leela-zero/issues/events{/number}","events_url":"https://api.github.com/repos/gcp/leela-zero/events","assignees_url":"https://api.github.com/repos/gcp/leela-zero/assignees{/user}","branches_url":"https://api.github.com/repos/gcp/leela-zero/branches{/branch}","tags_url":"https://api.github.com/repos/gcp/leela-zero/tags","blobs_url":"https://api.github.com/repos/gcp/leela-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gcp/leela-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gcp/leela-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/gcp/leela-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gcp/leela-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/gcp/leela-zero/languages","stargazers_url":"https://api.github.com/repos/gcp/leela-zero/stargazers","contributors_url":"https://api.github.com/repos/gcp/leela-zero/contributors","subscribers_url":"https://api.github.com/repos/gcp/leela-zero/subscribers","subscription_url":"https://api.github.com/repos/gcp/leela-zero/subscription","commits_url":"https://api.github.com/repos/gcp/leela-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/gcp/leela-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/gcp/leela-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/gcp/leela-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/gcp/leela-zero/contents/{+path}","compare_url":"https://api.github.com/repos/gcp/leela-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gcp/leela-zero/merges","archive_url":"https://api.github.com/repos/gcp/leela-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gcp/leela-zero/downloads","issues_url":"https://api.github.com/repos/gcp/leela-zero/issues{/number}","pulls_url":"https://api.github.com/repos/gcp/leela-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/gcp/leela-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/gcp/leela-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gcp/leela-zero/labels{/name}","releases_url":"https://api.github.com/repos/gcp/leela-zero/releases{/id}","deployments_url":"https://api.github.com/repos/gcp/leela-zero/deployments","created_at":"2017-10-24T18:19:43Z","updated_at":"2017-12-29T04:21:50Z","pushed_at":"2017-12-29T03:16:05Z","git_url":"git://github.com/gcp/leela-zero.git","ssh_url":"git@github.com:gcp/leela-zero.git","clone_url":"https://github.com/gcp/leela-zero.git","svn_url":"https://github.com/gcp/leela-zero","homepage":null,"size":644,"stargazers_count":1516,"watchers_count":1516,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":291,"mirror_url":null,"archived":false,"open_issues_count":141,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":291,"open_issues":141,"watchers":1516,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gcp/leela-zero/pulls/196"},"html":{"href":"https://github.com/gcp/leela-zero/pull/196"},"issue":{"href":"https://api.github.com/repos/gcp/leela-zero/issues/196"},"comments":{"href":"https://api.github.com/repos/gcp/leela-zero/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/gcp/leela-zero/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/gcp/leela-zero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gcp/leela-zero/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/gcp/leela-zero/statuses/adacee29630183ca321f45d149908a4ce0a4bbc0"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":85,"review_comments":0,"maintainer_can_modify":false,"commits":67,"additions":1929,"deletions":526,"changed_files":37}}
{"actor":{"display_login":"NTT123"}}