File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ NnetBatchComputer::GetHighestPriorityComputation(
135135 int32 *minibatch_size_out,
136136 std::vector<NnetInferenceTask*> *tasks) {
137137 tasks->clear ();
138- std::unique_lock<std::mutex>(mutex_);
138+ std::unique_lock<std::mutex> lock (mutex_);
139139 MapType::iterator iter = tasks_.begin (), end = tasks_.end (),
140140 best_iter = tasks_.end ();
141141 double highest_priority = -std::numeric_limits<double >::infinity ();
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class NnetComputer {
119119
120120 // Version of GetOutput that calls Swap(), destroying the output stored inside
121121 // this object. You should probably not use this if you plan to call
122- // Backward() on the same NnetComputer object, or it's a recurret
122+ // Backward() on the same NnetComputer object, or it's a recurrent
123123 // computation-- it may lead to a crash.
124124 void GetOutputDestructive (const std::string &output_name,
125125 CuMatrix<BaseFloat> *output);
You can’t perform that action at this time.
0 commit comments