Skip to content

Commit

Permalink
Update openvino_provider_factory.cc
Browse files Browse the repository at this point in the history
Fix Lint issues
  • Loading branch information
vthaniel authored Oct 20, 2023
1 parent 74ed2a1 commit 2d16b57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions onnxruntime/core/providers/openvino/openvino_provider_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ struct OpenVINO_Provider : Provider {
num_of_threads = std::stoi(provider_options_map.at("num_of_threads"));
if (num_of_threads <= 0) {
num_of_threads = 1;
LOGS_DEFAULT(WARNING) << "[OpenVINO-EP] The value for the key 'num_of_threads' should be in the positive range.\n "
<< "Executing with num_of_threads=1";
LOGS_DEFAULT(WARNING) << "[OpenVINO-EP] The value for the key 'num_of_threads' should be in the positive range.\n "

Check warning on line 107 in onnxruntime/core/providers/openvino/openvino_provider_factory.cc

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/core/providers/openvino/openvino_provider_factory.cc#L107

Lines should be <= 120 characters long [whitespace/line_length] [2]
Raw output
onnxruntime/core/providers/openvino/openvino_provider_factory.cc:107:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
<< "Executing with num_of_threads=1";
}
}

if (provider_options_map.find("num_streams") != provider_options_map.end()) {
num_streams = std::stoi(provider_options_map.at("num_streams"));
if (num_streams <= 0 ) {
num_streams = 1;
if (num_streams <= 0) {
num_streams = 1;
LOGS_DEFAULT(WARNING) << "[OpenVINO-EP] The value for the key 'num_streams' should be in the positive range.\n "
<< "Executing with num_streams=1";
<< "Executing with num_streams=1";
}
}
std::string bool_flag = "";
Expand Down

0 comments on commit 2d16b57

Please sign in to comment.