Skip to content

Commit ade3b59

Browse files
committed
Fix for C4267 warning
1 parent 7546e65 commit ade3b59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/openvino_provider_factory.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ std::string ParsePrecision(const ProviderOptions& provider_options, std::string&
148148
<< "Update the 'device_type' to specified types 'CPU', 'GPU', 'GPU.0', "
149149
<< "'GPU.1', 'NPU' or from"
150150
<< " HETERO/MULTI/AUTO options and set 'precision' separately. \n";
151-
int delimit = device_type.find("_");
151+
auto delimit = device_type.find("_");
152152
device_type = device_type.substr(0, delimit);
153153
return device_type.substr(delimit + 1);
154154
}

onnxruntime/core/providers/openvino/ov_interface.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void OVInferRequest::SetTensor(const std::string& name, OVTensorPtr& blob) {
233233
}
234234

235235
uint32_t OVInferRequest::GetNumInputs() {
236-
return ovInfReq.get_compiled_model().inputs().size();
236+
return static_cast<uint32_t>(ovInfReq.get_compiled_model().inputs().size());
237237
}
238238

239239
void OVInferRequest::StartAsync() {

0 commit comments

Comments
 (0)