{"action":"created","comment":{"url":"https://api.github.com/repos/triagemd/ml-tools/pulls/comments/134101431","pull_request_review_id":57359088,"id":134101431,"diff_hunk":"@@ -0,0 +1,50 @@\n+from __future__ import print_function, division\n+\n+import tensorflow as tf\n+\n+from keras.models import Model\n+from keras.layers.core import Lambda\n+from keras.layers.merge import concatenate\n+\n+\n+# Source: https://github.com/kuza55/keras-extras/blob/master/utils/multi_gpu.py","path":"ml_tools/parallel.py","position":10,"original_position":10,"commit_id":"2403dd0d68a216f576b2ab8b137373b1c4a50e79","original_commit_id":"2403dd0d68a216f576b2ab8b137373b1c4a50e79","user":{"login":"snormore","id":182290,"avatar_url":"https://avatars1.githubusercontent.com/u/182290?v=4","gravatar_id":"","url":"https://api.github.com/users/snormore","html_url":"https://github.com/snormore","followers_url":"https://api.github.com/users/snormore/followers","following_url":"https://api.github.com/users/snormore/following{/other_user}","gists_url":"https://api.github.com/users/snormore/gists{/gist_id}","starred_url":"https://api.github.com/users/snormore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snormore/subscriptions","organizations_url":"https://api.github.com/users/snormore/orgs","repos_url":"https://api.github.com/users/snormore/repos","events_url":"https://api.github.com/users/snormore/events{/privacy}","received_events_url":"https://api.github.com/users/snormore/received_events","type":"User","site_admin":false},"body":"👌 ","created_at":"2017-08-19T21:45:25Z","updated_at":"2017-08-19T21:45:25Z","html_url":"https://github.com/triagemd/ml-tools/pull/15#discussion_r134101431","pull_request_url":"https://api.github.com/repos/triagemd/ml-tools/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/comments/134101431"},"html":{"href":"https://github.com/triagemd/ml-tools/pull/15#discussion_r134101431"},"pull_request":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/triagemd/ml-tools/pulls/15","id":136619080,"html_url":"https://github.com/triagemd/ml-tools/pull/15","diff_url":"https://github.com/triagemd/ml-tools/pull/15.diff","patch_url":"https://github.com/triagemd/ml-tools/pull/15.patch","issue_url":"https://api.github.com/repos/triagemd/ml-tools/issues/15","number":15,"state":"open","locked":false,"title":"Add make_parallel for Keras models with \"incompatible\" data tests","user":{"login":"snormore","id":182290,"avatar_url":"https://avatars1.githubusercontent.com/u/182290?v=4","gravatar_id":"","url":"https://api.github.com/users/snormore","html_url":"https://github.com/snormore","followers_url":"https://api.github.com/users/snormore/followers","following_url":"https://api.github.com/users/snormore/following{/other_user}","gists_url":"https://api.github.com/users/snormore/gists{/gist_id}","starred_url":"https://api.github.com/users/snormore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snormore/subscriptions","organizations_url":"https://api.github.com/users/snormore/orgs","repos_url":"https://api.github.com/users/snormore/repos","events_url":"https://api.github.com/users/snormore/events{/privacy}","received_events_url":"https://api.github.com/users/snormore/received_events","type":"User","site_admin":false},"body":"Add `make_parallel` for Keras models with tests that show what happens when `make_parallel` is given \"incompatible\" data:\r\n```\r\nIncompatible shapes: [4,4] vs. [5,4]\r\n```\r\ncoming from a `tensorflow.python.framework.errors.InvalidArgumentError`.\r\n\r\nIf you're looking for examples of training tests for Keras, check out https://github.com/fchollet/keras/blob/master/tests/keras/engine/test_training.py#L257","created_at":"2017-08-19T19:44:41Z","updated_at":"2017-08-19T21:45:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37f72dccced2b53fc1afdca464006e72c1ba5245","assignee":null,"assignees":[],"requested_reviewers":[{"login":"iamrosmarin","id":5657335,"avatar_url":"https://avatars3.githubusercontent.com/u/5657335?v=4","gravatar_id":"","url":"https://api.github.com/users/iamrosmarin","html_url":"https://github.com/iamrosmarin","followers_url":"https://api.github.com/users/iamrosmarin/followers","following_url":"https://api.github.com/users/iamrosmarin/following{/other_user}","gists_url":"https://api.github.com/users/iamrosmarin/gists{/gist_id}","starred_url":"https://api.github.com/users/iamrosmarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamrosmarin/subscriptions","organizations_url":"https://api.github.com/users/iamrosmarin/orgs","repos_url":"https://api.github.com/users/iamrosmarin/repos","events_url":"https://api.github.com/users/iamrosmarin/events{/privacy}","received_events_url":"https://api.github.com/users/iamrosmarin/received_events","type":"User","site_admin":false},{"login":"shuangao","id":5740648,"avatar_url":"https://avatars1.githubusercontent.com/u/5740648?v=4","gravatar_id":"","url":"https://api.github.com/users/shuangao","html_url":"https://github.com/shuangao","followers_url":"https://api.github.com/users/shuangao/followers","following_url":"https://api.github.com/users/shuangao/following{/other_user}","gists_url":"https://api.github.com/users/shuangao/gists{/gist_id}","starred_url":"https://api.github.com/users/shuangao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuangao/subscriptions","organizations_url":"https://api.github.com/users/shuangao/orgs","repos_url":"https://api.github.com/users/shuangao/repos","events_url":"https://api.github.com/users/shuangao/events{/privacy}","received_events_url":"https://api.github.com/users/shuangao/received_events","type":"User","site_admin":false},{"login":"jeremykawahara","id":13056003,"avatar_url":"https://avatars2.githubusercontent.com/u/13056003?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremykawahara","html_url":"https://github.com/jeremykawahara","followers_url":"https://api.github.com/users/jeremykawahara/followers","following_url":"https://api.github.com/users/jeremykawahara/following{/other_user}","gists_url":"https://api.github.com/users/jeremykawahara/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremykawahara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremykawahara/subscriptions","organizations_url":"https://api.github.com/users/jeremykawahara/orgs","repos_url":"https://api.github.com/users/jeremykawahara/repos","events_url":"https://api.github.com/users/jeremykawahara/events{/privacy}","received_events_url":"https://api.github.com/users/jeremykawahara/received_events","type":"User","site_admin":false},{"login":"jsalbert","id":17982112,"avatar_url":"https://avatars2.githubusercontent.com/u/17982112?v=4","gravatar_id":"","url":"https://api.github.com/users/jsalbert","html_url":"https://github.com/jsalbert","followers_url":"https://api.github.com/users/jsalbert/followers","following_url":"https://api.github.com/users/jsalbert/following{/other_user}","gists_url":"https://api.github.com/users/jsalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/jsalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsalbert/subscriptions","organizations_url":"https://api.github.com/users/jsalbert/orgs","repos_url":"https://api.github.com/users/jsalbert/repos","events_url":"https://api.github.com/users/jsalbert/events{/privacy}","received_events_url":"https://api.github.com/users/jsalbert/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/triagemd/ml-tools/pulls/15/commits","review_comments_url":"https://api.github.com/repos/triagemd/ml-tools/pulls/15/comments","review_comment_url":"https://api.github.com/repos/triagemd/ml-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/triagemd/ml-tools/issues/15/comments","statuses_url":"https://api.github.com/repos/triagemd/ml-tools/statuses/2403dd0d68a216f576b2ab8b137373b1c4a50e79","head":{"label":"triagemd:parallel","ref":"parallel","sha":"2403dd0d68a216f576b2ab8b137373b1c4a50e79","user":{"login":"triagemd","id":20424644,"avatar_url":"https://avatars1.githubusercontent.com/u/20424644?v=4","gravatar_id":"","url":"https://api.github.com/users/triagemd","html_url":"https://github.com/triagemd","followers_url":"https://api.github.com/users/triagemd/followers","following_url":"https://api.github.com/users/triagemd/following{/other_user}","gists_url":"https://api.github.com/users/triagemd/gists{/gist_id}","starred_url":"https://api.github.com/users/triagemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triagemd/subscriptions","organizations_url":"https://api.github.com/users/triagemd/orgs","repos_url":"https://api.github.com/users/triagemd/repos","events_url":"https://api.github.com/users/triagemd/events{/privacy}","received_events_url":"https://api.github.com/users/triagemd/received_events","type":"Organization","site_admin":false},"repo":{"id":98827212,"name":"ml-tools","full_name":"triagemd/ml-tools","owner":{"login":"triagemd","id":20424644,"avatar_url":"https://avatars1.githubusercontent.com/u/20424644?v=4","gravatar_id":"","url":"https://api.github.com/users/triagemd","html_url":"https://github.com/triagemd","followers_url":"https://api.github.com/users/triagemd/followers","following_url":"https://api.github.com/users/triagemd/following{/other_user}","gists_url":"https://api.github.com/users/triagemd/gists{/gist_id}","starred_url":"https://api.github.com/users/triagemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triagemd/subscriptions","organizations_url":"https://api.github.com/users/triagemd/orgs","repos_url":"https://api.github.com/users/triagemd/repos","events_url":"https://api.github.com/users/triagemd/events{/privacy}","received_events_url":"https://api.github.com/users/triagemd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/triagemd/ml-tools","description":"Tools for common machine learning tasks using Tensorflow and Keras.","fork":false,"url":"https://api.github.com/repos/triagemd/ml-tools","forks_url":"https://api.github.com/repos/triagemd/ml-tools/forks","keys_url":"https://api.github.com/repos/triagemd/ml-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/triagemd/ml-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/triagemd/ml-tools/teams","hooks_url":"https://api.github.com/repos/triagemd/ml-tools/hooks","issue_events_url":"https://api.github.com/repos/triagemd/ml-tools/issues/events{/number}","events_url":"https://api.github.com/repos/triagemd/ml-tools/events","assignees_url":"https://api.github.com/repos/triagemd/ml-tools/assignees{/user}","branches_url":"https://api.github.com/repos/triagemd/ml-tools/branches{/branch}","tags_url":"https://api.github.com/repos/triagemd/ml-tools/tags","blobs_url":"https://api.github.com/repos/triagemd/ml-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/triagemd/ml-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/triagemd/ml-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/triagemd/ml-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/triagemd/ml-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/triagemd/ml-tools/languages","stargazers_url":"https://api.github.com/repos/triagemd/ml-tools/stargazers","contributors_url":"https://api.github.com/repos/triagemd/ml-tools/contributors","subscribers_url":"https://api.github.com/repos/triagemd/ml-tools/subscribers","subscription_url":"https://api.github.com/repos/triagemd/ml-tools/subscription","commits_url":"https://api.github.com/repos/triagemd/ml-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/triagemd/ml-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/triagemd/ml-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/triagemd/ml-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/triagemd/ml-tools/contents/{+path}","compare_url":"https://api.github.com/repos/triagemd/ml-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/triagemd/ml-tools/merges","archive_url":"https://api.github.com/repos/triagemd/ml-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/triagemd/ml-tools/downloads","issues_url":"https://api.github.com/repos/triagemd/ml-tools/issues{/number}","pulls_url":"https://api.github.com/repos/triagemd/ml-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/triagemd/ml-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/triagemd/ml-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/triagemd/ml-tools/labels{/name}","releases_url":"https://api.github.com/repos/triagemd/ml-tools/releases{/id}","deployments_url":"https://api.github.com/repos/triagemd/ml-tools/deployments","created_at":"2017-07-30T22:00:30Z","updated_at":"2017-08-09T10:28:32Z","pushed_at":"2017-08-19T20:38:23Z","git_url":"git://github.com/triagemd/ml-tools.git","ssh_url":"git@github.com:triagemd/ml-tools.git","clone_url":"https://github.com/triagemd/ml-tools.git","svn_url":"https://github.com/triagemd/ml-tools","homepage":"","size":357,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"triagemd:master","ref":"master","sha":"bf05ae4af062b9833bd5794faa083e0af1fd5b04","user":{"login":"triagemd","id":20424644,"avatar_url":"https://avatars1.githubusercontent.com/u/20424644?v=4","gravatar_id":"","url":"https://api.github.com/users/triagemd","html_url":"https://github.com/triagemd","followers_url":"https://api.github.com/users/triagemd/followers","following_url":"https://api.github.com/users/triagemd/following{/other_user}","gists_url":"https://api.github.com/users/triagemd/gists{/gist_id}","starred_url":"https://api.github.com/users/triagemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triagemd/subscriptions","organizations_url":"https://api.github.com/users/triagemd/orgs","repos_url":"https://api.github.com/users/triagemd/repos","events_url":"https://api.github.com/users/triagemd/events{/privacy}","received_events_url":"https://api.github.com/users/triagemd/received_events","type":"Organization","site_admin":false},"repo":{"id":98827212,"name":"ml-tools","full_name":"triagemd/ml-tools","owner":{"login":"triagemd","id":20424644,"avatar_url":"https://avatars1.githubusercontent.com/u/20424644?v=4","gravatar_id":"","url":"https://api.github.com/users/triagemd","html_url":"https://github.com/triagemd","followers_url":"https://api.github.com/users/triagemd/followers","following_url":"https://api.github.com/users/triagemd/following{/other_user}","gists_url":"https://api.github.com/users/triagemd/gists{/gist_id}","starred_url":"https://api.github.com/users/triagemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triagemd/subscriptions","organizations_url":"https://api.github.com/users/triagemd/orgs","repos_url":"https://api.github.com/users/triagemd/repos","events_url":"https://api.github.com/users/triagemd/events{/privacy}","received_events_url":"https://api.github.com/users/triagemd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/triagemd/ml-tools","description":"Tools for common machine learning tasks using Tensorflow and Keras.","fork":false,"url":"https://api.github.com/repos/triagemd/ml-tools","forks_url":"https://api.github.com/repos/triagemd/ml-tools/forks","keys_url":"https://api.github.com/repos/triagemd/ml-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/triagemd/ml-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/triagemd/ml-tools/teams","hooks_url":"https://api.github.com/repos/triagemd/ml-tools/hooks","issue_events_url":"https://api.github.com/repos/triagemd/ml-tools/issues/events{/number}","events_url":"https://api.github.com/repos/triagemd/ml-tools/events","assignees_url":"https://api.github.com/repos/triagemd/ml-tools/assignees{/user}","branches_url":"https://api.github.com/repos/triagemd/ml-tools/branches{/branch}","tags_url":"https://api.github.com/repos/triagemd/ml-tools/tags","blobs_url":"https://api.github.com/repos/triagemd/ml-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/triagemd/ml-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/triagemd/ml-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/triagemd/ml-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/triagemd/ml-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/triagemd/ml-tools/languages","stargazers_url":"https://api.github.com/repos/triagemd/ml-tools/stargazers","contributors_url":"https://api.github.com/repos/triagemd/ml-tools/contributors","subscribers_url":"https://api.github.com/repos/triagemd/ml-tools/subscribers","subscription_url":"https://api.github.com/repos/triagemd/ml-tools/subscription","commits_url":"https://api.github.com/repos/triagemd/ml-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/triagemd/ml-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/triagemd/ml-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/triagemd/ml-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/triagemd/ml-tools/contents/{+path}","compare_url":"https://api.github.com/repos/triagemd/ml-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/triagemd/ml-tools/merges","archive_url":"https://api.github.com/repos/triagemd/ml-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/triagemd/ml-tools/downloads","issues_url":"https://api.github.com/repos/triagemd/ml-tools/issues{/number}","pulls_url":"https://api.github.com/repos/triagemd/ml-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/triagemd/ml-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/triagemd/ml-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/triagemd/ml-tools/labels{/name}","releases_url":"https://api.github.com/repos/triagemd/ml-tools/releases{/id}","deployments_url":"https://api.github.com/repos/triagemd/ml-tools/deployments","created_at":"2017-07-30T22:00:30Z","updated_at":"2017-08-09T10:28:32Z","pushed_at":"2017-08-19T20:38:23Z","git_url":"git://github.com/triagemd/ml-tools.git","ssh_url":"git@github.com:triagemd/ml-tools.git","clone_url":"https://github.com/triagemd/ml-tools.git","svn_url":"https://github.com/triagemd/ml-tools","homepage":"","size":357,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/15"},"html":{"href":"https://github.com/triagemd/ml-tools/pull/15"},"issue":{"href":"https://api.github.com/repos/triagemd/ml-tools/issues/15"},"comments":{"href":"https://api.github.com/repos/triagemd/ml-tools/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/triagemd/ml-tools/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/triagemd/ml-tools/statuses/2403dd0d68a216f576b2ab8b137373b1c4a50e79"}}}}
{"actor":{"display_login":"snormore"}}