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
d765fb3b
Commit
d765fb3b
authored
9 years ago
by
Dan Povey
Browse files
Options
Downloads
Patches
Plain Diff
some minor changes to CCTC training
parent
7d4765af
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ctc/Makefile
+1
-1
1 addition, 1 deletion
src/ctc/Makefile
src/ctc/cctc-training.cc
+2
-1
2 additions, 1 deletion
src/ctc/cctc-training.cc
src/ctc/cctc-training.h
+3
-3
3 additions, 3 deletions
src/ctc/cctc-training.h
with
6 additions
and
5 deletions
src/ctc/Makefile
+
1
−
1
View file @
d765fb3b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/ctc/cctc-training.cc
+
2
−
1
View file @
d765fb3b
...
...
@@ -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
();
}
...
...
This diff is collapsed.
Click to expand it.
src/ctc/cctc-training.h
+
3
−
3
View file @
d765fb3b
...
...
@@ -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_
;
//
numer
ator_indexes is a list of indexes that we need to look up in
//
denomin
ator_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
...
...
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