Skip to content

Commit

Permalink
Revert "fix: index variable in OpenMP 'for' statement must have signe…
Browse files Browse the repository at this point in the history
…d integral type"

This reverts commit bc7a7ee.
  • Loading branch information
zdenop committed Dec 11, 2022
1 parent d89ff46 commit b37de16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccmain/par_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void Tesseract::PrerecAllWordsPar(const std::vector<WordData> &words) {
# pragma omp parallel for num_threads(10)
#endif // _OPENMP
// NOLINTNEXTLINE(modernize-loop-convert)
for (auto b = 0; b < blobs.size(); ++b) {
for (size_t b = 0; b < blobs.size(); ++b) {
*blobs[b].choices =
blobs[b].tesseract->classify_blob(blobs[b].blob, "par", ScrollView::WHITE, nullptr);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lstm/parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool Parallel::Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch
#ifdef _OPENMP
# pragma omp parallel for num_threads(stack_size)
#endif
for (auto i = 0; i < stack_size; ++i) {
for (unsigned i = 0; i < stack_size; ++i) {
stack_[i]->Backward(debug, *in_deltas[i], scratch, i == 0 ? back_deltas : out_deltas[i]);
}
if (needs_to_backprop_) {
Expand Down

0 comments on commit b37de16

Please sign in to comment.