{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments/139865706","pull_request_review_id":63856345,"id":139865706,"diff_hunk":"@@ -31,13 +31,14 @@ namespace paddle {\n namespace platform {\n // Transform on host or device. It provides the same API in std library.\n template <typename InputIter, typename OutputIter, typename UnaryOperation>\n-void Transform(const DeviceContext& context, InputIter first, InputIter last,\n-               OutputIter result, UnaryOperation op) {\n+inline static void Transform(const DeviceContext& context, InputIter first,","path":"paddle/platform/transform.h","position":6,"original_position":6,"commit_id":"336742fbc9f1e51a7b9d6e4981718695e25c86e0","original_commit_id":"336742fbc9f1e51a7b9d6e4981718695e25c86e0","user":{"login":"reyoung","id":728699,"avatar_url":"https://avatars2.githubusercontent.com/u/728699?v=4","gravatar_id":"","url":"https://api.github.com/users/reyoung","html_url":"https://github.com/reyoung","followers_url":"https://api.github.com/users/reyoung/followers","following_url":"https://api.github.com/users/reyoung/following{/other_user}","gists_url":"https://api.github.com/users/reyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/reyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyoung/subscriptions","organizations_url":"https://api.github.com/users/reyoung/orgs","repos_url":"https://api.github.com/users/reyoung/repos","events_url":"https://api.github.com/users/reyoung/events{/privacy}","received_events_url":"https://api.github.com/users/reyoung/received_events","type":"User","site_admin":false},"body":"Maybe we should force inline? I think using a functor is a little bit complex.","created_at":"2017-09-20T02:58:09Z","updated_at":"2017-09-20T02:58:09Z","html_url":"https://github.com/PaddlePaddle/Paddle/pull/4209#discussion_r139865706","pull_request_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments/139865706"},"html":{"href":"https://github.com/PaddlePaddle/Paddle/pull/4209#discussion_r139865706"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209"}},"in_reply_to_id":139838334},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209","id":141973291,"html_url":"https://github.com/PaddlePaddle/Paddle/pull/4209","diff_url":"https://github.com/PaddlePaddle/Paddle/pull/4209.diff","patch_url":"https://github.com/PaddlePaddle/Paddle/pull/4209.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/4209","number":4209,"state":"open","locked":false,"title":"Fix Transform API for operator","user":{"login":"reyoung","id":728699,"avatar_url":"https://avatars2.githubusercontent.com/u/728699?v=4","gravatar_id":"","url":"https://api.github.com/users/reyoung","html_url":"https://github.com/reyoung","followers_url":"https://api.github.com/users/reyoung/followers","following_url":"https://api.github.com/users/reyoung/following{/other_user}","gists_url":"https://api.github.com/users/reyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/reyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyoung/subscriptions","organizations_url":"https://api.github.com/users/reyoung/orgs","repos_url":"https://api.github.com/users/reyoung/repos","events_url":"https://api.github.com/users/reyoung/events{/privacy}","received_events_url":"https://api.github.com/users/reyoung/received_events","type":"User","site_admin":false},"body":"* Fix #4202","created_at":"2017-09-19T22:40:23Z","updated_at":"2017-09-20T02:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdad78bfaf2c2d299811969b02c95340935540b6","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/4209/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/336742fbc9f1e51a7b9d6e4981718695e25c86e0","head":{"label":"reyoung:feature/transform_api_for_op","ref":"feature/transform_api_for_op","sha":"336742fbc9f1e51a7b9d6e4981718695e25c86e0","user":{"login":"reyoung","id":728699,"avatar_url":"https://avatars2.githubusercontent.com/u/728699?v=4","gravatar_id":"","url":"https://api.github.com/users/reyoung","html_url":"https://github.com/reyoung","followers_url":"https://api.github.com/users/reyoung/followers","following_url":"https://api.github.com/users/reyoung/following{/other_user}","gists_url":"https://api.github.com/users/reyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/reyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyoung/subscriptions","organizations_url":"https://api.github.com/users/reyoung/orgs","repos_url":"https://api.github.com/users/reyoung/repos","events_url":"https://api.github.com/users/reyoung/events{/privacy}","received_events_url":"https://api.github.com/users/reyoung/received_events","type":"User","site_admin":false},"repo":{"id":67185903,"name":"Paddle","full_name":"reyoung/Paddle","owner":{"login":"reyoung","id":728699,"avatar_url":"https://avatars2.githubusercontent.com/u/728699?v=4","gravatar_id":"","url":"https://api.github.com/users/reyoung","html_url":"https://github.com/reyoung","followers_url":"https://api.github.com/users/reyoung/followers","following_url":"https://api.github.com/users/reyoung/following{/other_user}","gists_url":"https://api.github.com/users/reyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/reyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyoung/subscriptions","organizations_url":"https://api.github.com/users/reyoung/orgs","repos_url":"https://api.github.com/users/reyoung/repos","events_url":"https://api.github.com/users/reyoung/events{/privacy}","received_events_url":"https://api.github.com/users/reyoung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reyoung/Paddle","description":"PArallel Distributed Deep LEarning","fork":true,"url":"https://api.github.com/repos/reyoung/Paddle","forks_url":"https://api.github.com/repos/reyoung/Paddle/forks","keys_url":"https://api.github.com/repos/reyoung/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reyoung/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reyoung/Paddle/teams","hooks_url":"https://api.github.com/repos/reyoung/Paddle/hooks","issue_events_url":"https://api.github.com/repos/reyoung/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/reyoung/Paddle/events","assignees_url":"https://api.github.com/repos/reyoung/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/reyoung/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/reyoung/Paddle/tags","blobs_url":"https://api.github.com/repos/reyoung/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reyoung/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reyoung/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/reyoung/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reyoung/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/reyoung/Paddle/languages","stargazers_url":"https://api.github.com/repos/reyoung/Paddle/stargazers","contributors_url":"https://api.github.com/repos/reyoung/Paddle/contributors","subscribers_url":"https://api.github.com/repos/reyoung/Paddle/subscribers","subscription_url":"https://api.github.com/repos/reyoung/Paddle/subscription","commits_url":"https://api.github.com/repos/reyoung/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/reyoung/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/reyoung/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/reyoung/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/reyoung/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/reyoung/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reyoung/Paddle/merges","archive_url":"https://api.github.com/repos/reyoung/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reyoung/Paddle/downloads","issues_url":"https://api.github.com/repos/reyoung/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/reyoung/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/reyoung/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/reyoung/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reyoung/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/reyoung/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/reyoung/Paddle/deployments","created_at":"2016-09-02T03:14:43Z","updated_at":"2017-04-17T08:16:04Z","pushed_at":"2017-09-19T22:39:53Z","git_url":"git://github.com/reyoung/Paddle.git","ssh_url":"git@github.com:reyoung/Paddle.git","clone_url":"https://github.com/reyoung/Paddle.git","svn_url":"https://github.com/reyoung/Paddle","homepage":"http://www.paddlepaddle.org/","size":34183,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"5b42d2b21b6c63302751336c691218f6b2498626","user":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":65711522,"name":"Paddle","full_name":"PaddlePaddle/Paddle","owner":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/Paddle","description":"PArallel Distributed Deep LEarning","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/Paddle","forks_url":"https://api.github.com/repos/PaddlePaddle/Paddle/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/Paddle/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/Paddle/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/Paddle/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/Paddle/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/Paddle/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/Paddle/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/Paddle/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/Paddle/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/Paddle/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/Paddle/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/deployments","created_at":"2016-08-15T06:59:08Z","updated_at":"2017-09-20T01:34:59Z","pushed_at":"2017-09-20T02:50:48Z","git_url":"git://github.com/PaddlePaddle/Paddle.git","ssh_url":"git@github.com:PaddlePaddle/Paddle.git","clone_url":"https://github.com/PaddlePaddle/Paddle.git","svn_url":"https://github.com/PaddlePaddle/Paddle","homepage":"http://www.paddlepaddle.org/","size":51683,"stargazers_count":5438,"watchers_count":5438,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1460,"mirror_url":null,"open_issues_count":623,"forks":1460,"open_issues":623,"watchers":5438,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209"},"html":{"href":"https://github.com/PaddlePaddle/Paddle/pull/4209"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/4209"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/4209/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/4209/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/336742fbc9f1e51a7b9d6e4981718695e25c86e0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"reyoung"}}