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
44980dd6
Unverified
Commit
44980dd6
authored
6 years ago
by
Daniel Povey
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[src] Fix incorrect invocation of mutex in nnet-batch-compute code (#2932)
parent
78f01276
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nnet3/nnet-batch-compute.cc
+1
-1
1 addition, 1 deletion
src/nnet3/nnet-batch-compute.cc
src/nnet3/nnet-compute.h
+1
-1
1 addition, 1 deletion
src/nnet3/nnet-compute.h
with
2 additions
and
2 deletions
src/nnet3/nnet-batch-compute.cc
+
1
−
1
View file @
44980dd6
...
...
@@ -135,7 +135,7 @@ NnetBatchComputer::GetHighestPriorityComputation(
int32
*
minibatch_size_out
,
std
::
vector
<
NnetInferenceTask
*>
*
tasks
)
{
tasks
->
clear
();
std
::
unique_lock
<
std
::
mutex
>
(
mutex_
);
std
::
unique_lock
<
std
::
mutex
>
lock
(
mutex_
);
MapType
::
iterator
iter
=
tasks_
.
begin
(),
end
=
tasks_
.
end
(),
best_iter
=
tasks_
.
end
();
double
highest_priority
=
-
std
::
numeric_limits
<
double
>::
infinity
();
...
...
This diff is collapsed.
Click to expand it.
src/nnet3/nnet-compute.h
+
1
−
1
View file @
44980dd6
...
...
@@ -119,7 +119,7 @@ class NnetComputer {
// Version of GetOutput that calls Swap(), destroying the output stored inside
// this object. You should probably not use this if you plan to call
// Backward() on the same NnetComputer object, or it's a recurret
// Backward() on the same NnetComputer object, or it's a recurre
n
t
// computation-- it may lead to a crash.
void
GetOutputDestructive
(
const
std
::
string
&
output_name
,
CuMatrix
<
BaseFloat
>
*
output
);
...
...
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