{"action":"created","comment":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/37486179","id":37486179,"diff_hunk":"@@ -2078,6 +2192,44 @@ void CuMatrixBase<Real>::SumColumnRanges(const CuMatrixBase<Real> &src,\n }\n \n \n+template<typename Real>\n+void CuMatrixBase<Real>::AddRowRanges(const CuMatrixBase<Real> &src,\n+                                      const CuArray<Int32Pair> &indexes) {\n+  KALDI_ASSERT(static_cast<MatrixIndexT>(indexes.Dim()) == NumCols());\n+  KALDI_ASSERT(src.NumCols() >= NumCols());\n+  if (NumRows() == 0) return;\n+#if HAVE_CUDA == 1\n+  if (CuDevice::Instantiate().Enabled()) {\n+    \n+    Timer tim;\n+    dim3 dimBlock(CU2DBLOCK, CU2DBLOCK);\n+    dim3 dimGrid(n_blocks(NumRows(), CU2DBLOCK),\n+                 n_blocks(NumCols(), CU2DBLOCK));\n+    cuda_add_row_ranges(dimGrid, dimBlock,\n+                        data_, Dim(), src.Data(), src.Dim(), indexes.Data());\n+    CU_SAFE_CALL(cudaGetLastError());\n+    CuDevice::Instantiate().AccuProfile(__func__, tim.Elapsed());\n+  } else\n+#endif\n+  { // Implement here for the CPU..","path":"src/cudamatrix/cu-matrix.cc","position":281,"original_position":281,"commit_id":"7170d927ae2401b830f7b039de52c9e5a46fb455","original_commit_id":"7170d927ae2401b830f7b039de52c9e5a46fb455","user":{"login":"kkm000","id":8228229,"avatar_url":"https://avatars.githubusercontent.com/u/8228229?v=3","gravatar_id":"","url":"https://api.github.com/users/kkm000","html_url":"https://github.com/kkm000","followers_url":"https://api.github.com/users/kkm000/followers","following_url":"https://api.github.com/users/kkm000/following{/other_user}","gists_url":"https://api.github.com/users/kkm000/gists{/gist_id}","starred_url":"https://api.github.com/users/kkm000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkm000/subscriptions","organizations_url":"https://api.github.com/users/kkm000/orgs","repos_url":"https://api.github.com/users/kkm000/repos","events_url":"https://api.github.com/users/kkm000/events{/privacy}","received_events_url":"https://api.github.com/users/kkm000/received_events","type":"User","site_admin":false},"body":"Looks like a leftover to-do comment.","created_at":"2015-08-20T00:49:40Z","updated_at":"2015-08-20T00:49:40Z","html_url":"https://github.com/kaldi-asr/kaldi/pull/83#discussion_r37486179","pull_request_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/37486179"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/83#discussion_r37486179"},"pull_request":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83","id":42872786,"html_url":"https://github.com/kaldi-asr/kaldi/pull/83","diff_url":"https://github.com/kaldi-asr/kaldi/pull/83.diff","patch_url":"https://github.com/kaldi-asr/kaldi/pull/83.patch","issue_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/83","number":83,"state":"closed","locked":false,"title":"Master merge nnet3","user":{"login":"danpovey","id":3298747,"avatar_url":"https://avatars.githubusercontent.com/u/3298747?v=3","gravatar_id":"","url":"https://api.github.com/users/danpovey","html_url":"https://github.com/danpovey","followers_url":"https://api.github.com/users/danpovey/followers","following_url":"https://api.github.com/users/danpovey/following{/other_user}","gists_url":"https://api.github.com/users/danpovey/gists{/gist_id}","starred_url":"https://api.github.com/users/danpovey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpovey/subscriptions","organizations_url":"https://api.github.com/users/danpovey/orgs","repos_url":"https://api.github.com/users/danpovey/repos","events_url":"https://api.github.com/users/danpovey/events{/privacy}","received_events_url":"https://api.github.com/users/danpovey/received_events","type":"User","site_admin":false},"body":"Doing this one via pull request as it's a bit more dangerous than what I normally do.","created_at":"2015-08-19T22:37:51Z","updated_at":"2015-08-20T00:49:40Z","closed_at":"2015-08-19T23:09:05Z","merged_at":"2015-08-19T23:09:05Z","merge_commit_sha":"637984be171a2637527b0f4cb6e75f12bc2cb273","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83/commits","review_comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83/comments","review_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/83/comments","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/7170d927ae2401b830f7b039de52c9e5a46fb455","head":{"label":"danpovey:master_merge_nnet3","ref":"master_merge_nnet3","sha":"7170d927ae2401b830f7b039de52c9e5a46fb455","user":{"login":"danpovey","id":3298747,"avatar_url":"https://avatars.githubusercontent.com/u/3298747?v=3","gravatar_id":"","url":"https://api.github.com/users/danpovey","html_url":"https://github.com/danpovey","followers_url":"https://api.github.com/users/danpovey/followers","following_url":"https://api.github.com/users/danpovey/following{/other_user}","gists_url":"https://api.github.com/users/danpovey/gists{/gist_id}","starred_url":"https://api.github.com/users/danpovey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpovey/subscriptions","organizations_url":"https://api.github.com/users/danpovey/orgs","repos_url":"https://api.github.com/users/danpovey/repos","events_url":"https://api.github.com/users/danpovey/events{/privacy}","received_events_url":"https://api.github.com/users/danpovey/received_events","type":"User","site_admin":false},"repo":{"id":34285091,"name":"kaldi","full_name":"danpovey/kaldi","owner":{"login":"danpovey","id":3298747,"avatar_url":"https://avatars.githubusercontent.com/u/3298747?v=3","gravatar_id":"","url":"https://api.github.com/users/danpovey","html_url":"https://github.com/danpovey","followers_url":"https://api.github.com/users/danpovey/followers","following_url":"https://api.github.com/users/danpovey/following{/other_user}","gists_url":"https://api.github.com/users/danpovey/gists{/gist_id}","starred_url":"https://api.github.com/users/danpovey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpovey/subscriptions","organizations_url":"https://api.github.com/users/danpovey/orgs","repos_url":"https://api.github.com/users/danpovey/repos","events_url":"https://api.github.com/users/danpovey/events{/privacy}","received_events_url":"https://api.github.com/users/danpovey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danpovey/kaldi","description":"dan povey's local copy of kadi-asr/kaldi","fork":true,"url":"https://api.github.com/repos/danpovey/kaldi","forks_url":"https://api.github.com/repos/danpovey/kaldi/forks","keys_url":"https://api.github.com/repos/danpovey/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danpovey/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danpovey/kaldi/teams","hooks_url":"https://api.github.com/repos/danpovey/kaldi/hooks","issue_events_url":"https://api.github.com/repos/danpovey/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/danpovey/kaldi/events","assignees_url":"https://api.github.com/repos/danpovey/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/danpovey/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/danpovey/kaldi/tags","blobs_url":"https://api.github.com/repos/danpovey/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danpovey/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danpovey/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/danpovey/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danpovey/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/danpovey/kaldi/languages","stargazers_url":"https://api.github.com/repos/danpovey/kaldi/stargazers","contributors_url":"https://api.github.com/repos/danpovey/kaldi/contributors","subscribers_url":"https://api.github.com/repos/danpovey/kaldi/subscribers","subscription_url":"https://api.github.com/repos/danpovey/kaldi/subscription","commits_url":"https://api.github.com/repos/danpovey/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/danpovey/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/danpovey/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/danpovey/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/danpovey/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/danpovey/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danpovey/kaldi/merges","archive_url":"https://api.github.com/repos/danpovey/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danpovey/kaldi/downloads","issues_url":"https://api.github.com/repos/danpovey/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/danpovey/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/danpovey/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/danpovey/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danpovey/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/danpovey/kaldi/releases{/id}","created_at":"2015-04-20T20:37:58Z","updated_at":"2015-07-24T20:21:38Z","pushed_at":"2015-08-19T23:03:37Z","git_url":"git://github.com/danpovey/kaldi.git","ssh_url":"git@github.com:danpovey/kaldi.git","clone_url":"https://github.com/danpovey/kaldi.git","svn_url":"https://github.com/danpovey/kaldi","homepage":"","size":70411,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"kaldi-asr:master","ref":"master","sha":"532cb4340a191b857f9e2848f7c5be7052de843b","user":{"login":"kaldi-asr","id":11650082,"avatar_url":"https://avatars.githubusercontent.com/u/11650082?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"repo":{"id":34275045,"name":"kaldi","full_name":"kaldi-asr/kaldi","owner":{"login":"kaldi-asr","id":11650082,"avatar_url":"https://avatars.githubusercontent.com/u/11650082?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaldi-asr/kaldi","description":"This is now the official location of the Kaldi project.","fork":false,"url":"https://api.github.com/repos/kaldi-asr/kaldi","forks_url":"https://api.github.com/repos/kaldi-asr/kaldi/forks","keys_url":"https://api.github.com/repos/kaldi-asr/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaldi-asr/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaldi-asr/kaldi/teams","hooks_url":"https://api.github.com/repos/kaldi-asr/kaldi/hooks","issue_events_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/kaldi-asr/kaldi/events","assignees_url":"https://api.github.com/repos/kaldi-asr/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/kaldi-asr/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/tags","blobs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/kaldi-asr/kaldi/languages","stargazers_url":"https://api.github.com/repos/kaldi-asr/kaldi/stargazers","contributors_url":"https://api.github.com/repos/kaldi-asr/kaldi/contributors","subscribers_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscribers","subscription_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscription","commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaldi-asr/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/kaldi-asr/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaldi-asr/kaldi/merges","archive_url":"https://api.github.com/repos/kaldi-asr/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaldi-asr/kaldi/downloads","issues_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/kaldi-asr/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/kaldi-asr/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaldi-asr/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/kaldi-asr/kaldi/releases{/id}","created_at":"2015-04-20T17:23:16Z","updated_at":"2015-08-19T21:26:34Z","pushed_at":"2015-08-20T00:11:57Z","git_url":"git://github.com/kaldi-asr/kaldi.git","ssh_url":"git@github.com:kaldi-asr/kaldi.git","clone_url":"https://github.com/kaldi-asr/kaldi.git","svn_url":"https://github.com/kaldi-asr/kaldi","homepage":"http://kaldi-asr.org","size":74127,"stargazers_count":72,"watchers_count":72,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":10,"forks":53,"open_issues":10,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/83"},"issue":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/83"},"comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/7170d927ae2401b830f7b039de52c9e5a46fb455"}}}}