{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/comments/208143844","pull_request_review_id":143893087,"id":208143844,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODE0Mzg0NA==","diff_hunk":"@@ -0,0 +1,75 @@\n+/* Copyright (c) 2018 Anakin Authors, Inc. All Rights Reserved.\n+\n+   Licensed under the Apache License, Version 2.0 (the \"License\");\n+   you may not use this file except in compliance with the License.\n+   You may obtain a copy of the License at\n+\n+       http://www.apache.org/licenses/LICENSE-2.0\n+   \n+   Unless required by applicable law or agreed to in writing, software\n+   distributed under the License is distributed on an \"AS IS\" BASIS,\n+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+   See the License for the specific language governing permissions and\n+   limitations under the License. \n+*/\n+\n+#ifndef ANAKIN_SABER_FUNCS_IMPL_CUDA_SABER_ARGMAX_H\n+#define ANAKIN_SABER_FUNCS_IMPL_CUDA_SABER_ARGMAX_H\n+\n+#include \"saber/funcs/impl/impl_argmax.h\"\n+\n+namespace anakin{\n+\n+namespace saber{\n+\n+template <DataType OpDtype>\n+class SaberArgmax<NV, OpDtype> : \n+    public ImplBase<\n+        NV, OpDtype,\n+        ArgmaxParam<NV> > \n+{\n+public:\n+    typedef typename DataTrait<NV, OpDtype>::Dtype OpDataType;\n+\n+    SaberArgmax(){}\n+\n+    ~SaberArgmax() {}\n+\n+    virtual SaberStatus init(const std::vector<Tensor<NV> *>& inputs,\n+                        std::vector<Tensor<NV> *>& outputs,","path":"saber/funcs/impl/cuda/saber_argmax.h","position":39,"original_position":39,"commit_id":"942580888df0bf372b9767ca140b16398274a582","original_commit_id":"45c00bb528b77742e6906e3b82dbc017ae34d391","user":{"login":"chenjiaoAngel","id":38650344,"node_id":"MDQ6VXNlcjM4NjUwMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/38650344?v=4","gravatar_id":"","url":"https://api.github.com/users/chenjiaoAngel","html_url":"https://github.com/chenjiaoAngel","followers_url":"https://api.github.com/users/chenjiaoAngel/followers","following_url":"https://api.github.com/users/chenjiaoAngel/following{/other_user}","gists_url":"https://api.github.com/users/chenjiaoAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/chenjiaoAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenjiaoAngel/subscriptions","organizations_url":"https://api.github.com/users/chenjiaoAngel/orgs","repos_url":"https://api.github.com/users/chenjiaoAngel/repos","events_url":"https://api.github.com/users/chenjiaoAngel/events{/privacy}","received_events_url":"https://api.github.com/users/chenjiaoAngel/received_events","type":"User","site_admin":false},"body":"这是AK::FLOAT的特例化，不同数据类型有不同的特例化。故不用检查","created_at":"2018-08-07T08:37:35Z","updated_at":"2018-08-07T08:37:35Z","html_url":"https://github.com/PaddlePaddle/Anakin/pull/273#discussion_r208143844","pull_request_url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/comments/208143844"},"html":{"href":"https://github.com/PaddlePaddle/Anakin/pull/273#discussion_r208143844"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273"}},"in_reply_to_id":208112464},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273","id":205735987,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NzM1OTg3","html_url":"https://github.com/PaddlePaddle/Anakin/pull/273","diff_url":"https://github.com/PaddlePaddle/Anakin/pull/273.diff","patch_url":"https://github.com/PaddlePaddle/Anakin/pull/273.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/273","number":273,"state":"open","locked":false,"title":"add argmax op","user":{"login":"chenjiaoAngel","id":38650344,"node_id":"MDQ6VXNlcjM4NjUwMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/38650344?v=4","gravatar_id":"","url":"https://api.github.com/users/chenjiaoAngel","html_url":"https://github.com/chenjiaoAngel","followers_url":"https://api.github.com/users/chenjiaoAngel/followers","following_url":"https://api.github.com/users/chenjiaoAngel/following{/other_user}","gists_url":"https://api.github.com/users/chenjiaoAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/chenjiaoAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenjiaoAngel/subscriptions","organizations_url":"https://api.github.com/users/chenjiaoAngel/orgs","repos_url":"https://api.github.com/users/chenjiaoAngel/repos","events_url":"https://api.github.com/users/chenjiaoAngel/events{/privacy}","received_events_url":"https://api.github.com/users/chenjiaoAngel/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-02T13:32:32Z","updated_at":"2018-08-07T08:37:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c3aa64129629dc987164a95f141a68110b3105b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/273/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/Anakin/statuses/942580888df0bf372b9767ca140b16398274a582","head":{"label":"chenjiaoAngel:dev_v2","ref":"dev_v2","sha":"942580888df0bf372b9767ca140b16398274a582","user":{"login":"chenjiaoAngel","id":38650344,"node_id":"MDQ6VXNlcjM4NjUwMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/38650344?v=4","gravatar_id":"","url":"https://api.github.com/users/chenjiaoAngel","html_url":"https://github.com/chenjiaoAngel","followers_url":"https://api.github.com/users/chenjiaoAngel/followers","following_url":"https://api.github.com/users/chenjiaoAngel/following{/other_user}","gists_url":"https://api.github.com/users/chenjiaoAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/chenjiaoAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenjiaoAngel/subscriptions","organizations_url":"https://api.github.com/users/chenjiaoAngel/orgs","repos_url":"https://api.github.com/users/chenjiaoAngel/repos","events_url":"https://api.github.com/users/chenjiaoAngel/events{/privacy}","received_events_url":"https://api.github.com/users/chenjiaoAngel/received_events","type":"User","site_admin":false},"repo":{"id":133920067,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5MjAwNjc=","name":"Anakin","full_name":"chenjiaoAngel/Anakin","owner":{"login":"chenjiaoAngel","id":38650344,"node_id":"MDQ6VXNlcjM4NjUwMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/38650344?v=4","gravatar_id":"","url":"https://api.github.com/users/chenjiaoAngel","html_url":"https://github.com/chenjiaoAngel","followers_url":"https://api.github.com/users/chenjiaoAngel/followers","following_url":"https://api.github.com/users/chenjiaoAngel/following{/other_user}","gists_url":"https://api.github.com/users/chenjiaoAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/chenjiaoAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenjiaoAngel/subscriptions","organizations_url":"https://api.github.com/users/chenjiaoAngel/orgs","repos_url":"https://api.github.com/users/chenjiaoAngel/repos","events_url":"https://api.github.com/users/chenjiaoAngel/events{/privacy}","received_events_url":"https://api.github.com/users/chenjiaoAngel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chenjiaoAngel/Anakin","description":null,"fork":true,"url":"https://api.github.com/repos/chenjiaoAngel/Anakin","forks_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/forks","keys_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/teams","hooks_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/hooks","issue_events_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/issues/events{/number}","events_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/events","assignees_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/assignees{/user}","branches_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/branches{/branch}","tags_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/tags","blobs_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/git/refs{/sha}","trees_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/statuses/{sha}","languages_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/languages","stargazers_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/stargazers","contributors_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/contributors","subscribers_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/subscribers","subscription_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/subscription","commits_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/commits{/sha}","git_commits_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/git/commits{/sha}","comments_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/comments{/number}","issue_comment_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/issues/comments{/number}","contents_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/contents/{+path}","compare_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/merges","archive_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/downloads","issues_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/issues{/number}","pulls_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/pulls{/number}","milestones_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/milestones{/number}","notifications_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/labels{/name}","releases_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/releases{/id}","deployments_url":"https://api.github.com/repos/chenjiaoAngel/Anakin/deployments","created_at":"2018-05-18T07:35:23Z","updated_at":"2018-06-26T08:17:13Z","pushed_at":"2018-08-07T08:34:52Z","git_url":"git://github.com/chenjiaoAngel/Anakin.git","ssh_url":"git@github.com:chenjiaoAngel/Anakin.git","clone_url":"https://github.com/chenjiaoAngel/Anakin.git","svn_url":"https://github.com/chenjiaoAngel/Anakin","homepage":null,"size":18541,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PaddlePaddle:dev_v2","ref":"dev_v2","sha":"1b7dba0675fee4eceb4793ff9744640d5defac1f","user":{"login":"PaddlePaddle","id":23534030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0MDMw","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":133907444,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5MDc0NDQ=","name":"Anakin","full_name":"PaddlePaddle/Anakin","owner":{"login":"PaddlePaddle","id":23534030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0MDMw","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/Anakin","description":"High performance  Cross-platform Inference-engine, you could run Anakin on x86-cpu,arm, nv-gpu, amd-gpu,bitmain and cambricon devices.","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/Anakin","forks_url":"https://api.github.com/repos/PaddlePaddle/Anakin/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/Anakin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/Anakin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/Anakin/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/Anakin/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/Anakin/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/Anakin/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/Anakin/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/Anakin/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/Anakin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/Anakin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/Anakin/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/Anakin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/Anakin/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/Anakin/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/Anakin/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/Anakin/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/Anakin/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/Anakin/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/Anakin/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/Anakin/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/Anakin/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/Anakin/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/Anakin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/Anakin/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/Anakin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/Anakin/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/Anakin/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/Anakin/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/Anakin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/Anakin/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/Anakin/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/Anakin/deployments","created_at":"2018-05-18T05:32:25Z","updated_at":"2018-08-07T06:40:37Z","pushed_at":"2018-08-07T08:34:54Z","git_url":"git://github.com/PaddlePaddle/Anakin.git","ssh_url":"git@github.com:PaddlePaddle/Anakin.git","clone_url":"https://github.com/PaddlePaddle/Anakin.git","svn_url":"https://github.com/PaddlePaddle/Anakin","homepage":"https://anakin.baidu.com/","size":18438,"stargazers_count":219,"watchers_count":219,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":77,"open_issues":27,"watchers":219,"default_branch":"developing"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273"},"html":{"href":"https://github.com/PaddlePaddle/Anakin/pull/273"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/273"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/issues/273/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/pulls/273/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/Anakin/statuses/942580888df0bf372b9767ca140b16398274a582"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"chenjiaoAngel"}}