Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kaldi-commonvoice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Will
kaldi-commonvoice
Commits
81e20c4c
Commit
81e20c4c
authored
8 years ago
by
Shiyin Kang
Browse files
Options
Downloads
Patches
Plain Diff
comment about aliasing in AddMatMatDivMat.
parent
4c1a86d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cudamatrix/cu-matrix.cc
+2
-0
2 additions, 0 deletions
src/cudamatrix/cu-matrix.cc
src/cudamatrix/cu-matrix.h
+1
-0
1 addition, 0 deletions
src/cudamatrix/cu-matrix.h
with
3 additions
and
0 deletions
src/cudamatrix/cu-matrix.cc
+
2
−
0
View file @
81e20c4c
...
...
@@ -1012,6 +1012,8 @@ void CuMatrixBase<Real>::AddMatBlocks(Real alpha, const CuMatrixBase<Real> &A,
}
}
/// dst = a * b / c (by element; when c = 0, dst = a)
/// dst can be an alias of a, b or c safely and get expected result.
template
<
typename
Real
>
void
CuMatrixBase
<
Real
>::
AddMatMatDivMat
(
const
CuMatrixBase
<
Real
>
&
A
,
const
CuMatrixBase
<
Real
>
&
B
,
const
CuMatrixBase
<
Real
>
&
C
)
{
...
...
This diff is collapsed.
Click to expand it.
src/cudamatrix/cu-matrix.h
+
1
−
0
View file @
81e20c4c
...
...
@@ -416,6 +416,7 @@ class CuMatrixBase {
/// A = alpha * x * y^T + A .
void
AddVecVec
(
Real
alpha
,
const
CuVectorBase
<
Real
>
&
x
,
const
CuVectorBase
<
Real
>
&
y
);
/// *this = a * b / c (by element; when c = 0, *this = a)
/// *this can be an alias of a, b or c safely and get expected result.
void
AddMatMatDivMat
(
const
CuMatrixBase
<
Real
>
&
A
,
const
CuMatrixBase
<
Real
>
&
B
,
const
CuMatrixBase
<
Real
>
&
C
);
/// *this = beta * *this + alpha * M M^T, for symmetric matrices. It only
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment