Skip to content

Commit

Permalink
remove openmp error msg on PC
Browse files Browse the repository at this point in the history
  • Loading branch information
zchrissirhcz committed Dec 3, 2018
1 parent 9586866 commit 5ced530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ int Extractor::extract(int blob_index, Mat& feat)
if (blob_mats[blob_index].dims == 0)
{
int layer_index = net->blobs[blob_index].producer;
if (opt.num_threads == 0) {
opt.num_threads = 1;
}
ret = net->forward_layer(layer_index, blob_mats, opt);
}

Expand Down

0 comments on commit 5ced530

Please sign in to comment.