Skip to content

Commit 6bc4bd9

Browse files
committed
parallel graph eval
1 parent bac5dfe commit 6bc4bd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/neuralnet/ortbackend.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct Model {
115115
auto envLocal = std::make_unique<Ort::Env>(ORT_LOGGING_LEVEL_ERROR, "Default");
116116
env = std::move(envLocal);
117117
Ort::SessionOptions sf;
118+
sf.SetExecutionMode(ExecutionMode::ORT_PARALLEL);
118119
sf.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_EXTENDED);
119120
string dir = HomeData::getHomeDataDir(true, homeDataDirOverride);
120121
MakeDir::make(dir);

0 commit comments

Comments
 (0)