We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SetZero
AddVecToCols
CopyColsFromVec
1 parent ed12623 commit dcff688Copy full SHA for dcff688
src/chain/chain-denominator.cc
@@ -99,10 +99,7 @@ void DenominatorComputation::AlphaFirstFrame() {
99
den_graph_.NumStates(),
100
num_sequences_,
101
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);
+ alpha_mat.CopyColsFromVec(den_graph_.InitialProbs());
106
}
107
108
0 commit comments