Skip to content

Commit

Permalink
std::function<void()> run_fn = [=, this]() {
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jun 20, 2024
1 parent 84122a5 commit 5244cc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions onnxruntime/core/session/inference_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,11 @@ common::Status InferenceSession::RunAsync(const RunOptions* run_options,
if (!tp || concurrency::ThreadPool::DegreeOfParallelism(tp) < 2) {
return ORT_MAKE_STATUS(ONNXRUNTIME, INVALID_ARGUMENT, "intra op thread pool must have at least one thread for RunAsync");
}
#if __cplusplus >= 202002L
std::function<void()> run_fn = [=, this]() {
#else
std::function<void()> run_fn = [=]() {
#endif
Status status = Status::OK();
ORT_TRY {
if (run_options) {
Expand Down

0 comments on commit 5244cc4

Please sign in to comment.