Skip to content

Commit

Permalink
restore parallelization
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Nov 21, 2023
1 parent 6d6c82c commit bbb603c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions onnxruntime/core/providers/cpu/nn/tfidfvectorizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ Status TfIdfVectorizer::Compute(OpKernelContext* ctx) const {
OutputResult(frequencies, output_data + row_num * this->impl_->output_size_);
};

// concurrency::ThreadPool::TryBatchParallelFor(ctx->GetOperatorThreadPool(), num_rows, std::move(fn), 0);
for (size_t i = 0; i < num_rows; ++i) fn(i);
concurrency::ThreadPool::TryBatchParallelFor(ctx->GetOperatorThreadPool(), num_rows, std::move(fn), 0);
return Status::OK();
}

Expand Down

0 comments on commit bbb603c

Please sign in to comment.