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
015c96f7
Commit
015c96f7
authored
7 years ago
by
Dan Povey
Browse files
Options
Downloads
Patches
Plain Diff
[src] Add documentation for dropout function.
parent
d8be99a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cudamatrix/cu-math.h
+8
-0
8 additions, 0 deletions
src/cudamatrix/cu-math.h
with
8 additions
and
0 deletions
src/cudamatrix/cu-math.h
+
8
−
0
View file @
015c96f7
...
...
@@ -104,6 +104,14 @@ void Group2norm(const CuMatrixBase<Real> &src,
o_t = Sigmoid(o_part + w_{oc}*c_t)
m_t = o_t * Tanh(c_t)
Note on dropout: if the dropout mask is provided, let the
mask values be i_t_mask, f_t_mask and o_t_mask (for each
matrix row, these are scalars while i_t, f_t and o_t are of
dimension C, because this is 'per-frame' dropout as described in
http://www.danielpovey.com/files/2017_interspeech_dropout.pdf).
Then the modification to the equations above consists of
replacing 'i_t' with 'i_t_mask * i_t' in the RHS of the equations
above, and the same type of change for f_t and o_t.
*/
template
<
typename
Real
>
void
ComputeLstmNonlinearity
(
const
CuMatrixBase
<
Real
>
&
input
,
...
...
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