Skip to content

Commit dcff688

Browse files
csukuangfjmegazone87
authored andcommitted
[src] replace SetZero and AddVecToCols with CopyColsFromVec. (kaldi-asr#3994)
1 parent ed12623 commit dcff688

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/chain/chain-denominator.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ void DenominatorComputation::AlphaFirstFrame() {
9999
den_graph_.NumStates(),
100100
num_sequences_,
101101
num_sequences_);
102-
// TODO (possible): It would be more efficient here if we implemented a
103-
// CopyColsFromVec function in class CuMatrix.
104-
alpha_mat.SetZero();
105-
alpha_mat.AddVecToCols(1.0, den_graph_.InitialProbs(), 0.0);
102+
alpha_mat.CopyColsFromVec(den_graph_.InitialProbs());
106103
}
107104

108105

0 commit comments

Comments
 (0)