Skip to content
Snippets Groups Projects
Commit d765fb3b authored by Dan Povey's avatar Dan Povey
Browse files

some minor changes to CCTC training

parent 7d4765af
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ LDLIBS += $(CUDA_LDLIBS)
TESTFILES = language-model-test cctc-transition-model-test
OBJFILES = language-model.o cctc-transition-model.o cctc-graph.o \
ctc-supervision.o
ctc-supervision.o cctc-training.o
# ctc-functions.o
LIBNAME = kaldi-ctc
......
......@@ -96,10 +96,11 @@ bool CctcTraining::ComputeDerivatives(
// denominator_probs_ itself as the derivative.
denominator_deriv_.DivElements(denominator_probs_);
// We reuse the normalizers_ array to be the derivatives
// We will reuse the normalizers_ array to be the derivatives
// w.r.t. the normalizers.
normalizers_.SetZero();
}
......
......@@ -120,7 +120,7 @@ class CctcComputation {
// numerator_indexes is a list of indexes that we need to look up in
// exp_nnet_output_ for the forward-backward computation. The order is not
// important. indexes into this vector appear in .first members in
// important, but indexes into this vector appear in .first members in
// fst_indexes.
std::vector<Int32Pair> numerator_indexes_;
// the numerator of the probability. in the forward computation,
......@@ -130,9 +130,9 @@ class CctcComputation {
Vector<BaseFloat> numerator_probs_;
// numerator_indexes is a list of indexes that we need to look up in
// denominator_indexes is a list of indexes that we need to look up in
// normalizers_ for the forward-backward computation. The order is not
// important. indexes into this vector appear in .second members in
// important, but indexes into this vector appear in .second members in
// fst_indexes.
std::vector<Int32Pair> denominator_indexes_;
// the denominator of the probability. denominator_probs_[i] equals
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment