Skip to content

Commit 900e542

Browse files
authored
Merge pull request #9 from alibuild/alibot-cleanup-13755
Please consider the following formatting changes to #13755
2 parents 43eb177 + 2cc5d3e commit 900e542

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Common/ML/src/OrtInterface.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@ void OrtModel::reset(std::unordered_map<std::string, std::string> optionsMap)
113113
(pImplOrt->sessionOptions).SetLogSeverityLevel(OrtLoggingLevel(loggingLevel));
114114

115115
pImplOrt->env = std::make_shared<Ort::Env>(
116-
OrtLoggingLevel(loggingLevel),
116+
OrtLoggingLevel(loggingLevel),
117117
(optionsMap["onnx-environment-name"].empty() ? "onnx_model_inference" : optionsMap["onnx-environment-name"].c_str()),
118118
// Integrate ORT logging into Fairlogger
119119
[](void* param, OrtLoggingLevel severity, const char* category, const char* logid, const char* code_location, const char* message) {
120-
if(severity == ORT_LOGGING_LEVEL_VERBOSE) {
120+
if (severity == ORT_LOGGING_LEVEL_VERBOSE) {
121121
LOG(debug) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;
122-
} else if(severity == ORT_LOGGING_LEVEL_INFO) {
122+
} else if (severity == ORT_LOGGING_LEVEL_INFO) {
123123
LOG(info) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;
124-
} else if(severity == ORT_LOGGING_LEVEL_WARNING) {
124+
} else if (severity == ORT_LOGGING_LEVEL_WARNING) {
125125
LOG(warning) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;
126-
} else if(severity == ORT_LOGGING_LEVEL_ERROR) {
126+
} else if (severity == ORT_LOGGING_LEVEL_ERROR) {
127127
LOG(error) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;
128-
} else if(severity == ORT_LOGGING_LEVEL_FATAL) {
128+
} else if (severity == ORT_LOGGING_LEVEL_FATAL) {
129129
LOG(fatal) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;
130130
} else {
131131
LOG(info) << "(ORT) [" << logid << "|" << category << "|" << code_location << "]: " << message;

0 commit comments

Comments
 (0)