Skip to content

Commit 38c3856

Browse files
authored
Merge pull request #31 from alibuild/alibot-cleanup-14530
Please consider the following formatting changes to #14530
2 parents f2d2b86 + f03fdc3 commit 38c3856

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Common/ML/src/OrtInterface.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ void OrtModel::initOptions(std::unordered_map<std::string, std::string> optionsM
7070
mEnvName = (optionsMap.contains("onnx-environment-name") ? optionsMap["onnx-environment-name"] : "onnx_model_inference");
7171
mDeterministicMode = (optionsMap.contains("deterministic-compute") ? std::stoi(optionsMap["deterministic-compute"]) : 0);
7272

73-
if (mDeviceType == "CPU")
74-
{
73+
if (mDeviceType == "CPU") {
7574
(mPImplOrt->sessionOptions).SetIntraOpNumThreads(mIntraOpNumThreads);
7675
(mPImplOrt->sessionOptions).SetInterOpNumThreads(mInterOpNumThreads);
7776
if (mIntraOpNumThreads > 1 || mInterOpNumThreads > 1) {

0 commit comments

Comments
 (0)