diff --git a/onnxruntime/core/providers/openvino/openvino_provider_factory.cc b/onnxruntime/core/providers/openvino/openvino_provider_factory.cc index 1c2d857b62..2cf962c829 100644 --- a/onnxruntime/core/providers/openvino/openvino_provider_factory.cc +++ b/onnxruntime/core/providers/openvino/openvino_provider_factory.cc @@ -148,7 +148,7 @@ std::string ParsePrecision(const ProviderOptions& provider_options, std::string& << "Update the 'device_type' to specified types 'CPU', 'GPU', 'GPU.0', " << "'GPU.1', 'NPU' or from" << " HETERO/MULTI/AUTO options and set 'precision' separately. \n"; - int delimit = device_type.find("_"); + auto delimit = device_type.find("_"); device_type = device_type.substr(0, delimit); return device_type.substr(delimit + 1); } diff --git a/onnxruntime/core/providers/openvino/ov_interface.cc b/onnxruntime/core/providers/openvino/ov_interface.cc index 4c656bceff..d8d0dbfec8 100644 --- a/onnxruntime/core/providers/openvino/ov_interface.cc +++ b/onnxruntime/core/providers/openvino/ov_interface.cc @@ -233,7 +233,7 @@ void OVInferRequest::SetTensor(const std::string& name, OVTensorPtr& blob) { } uint32_t OVInferRequest::GetNumInputs() { - return ovInfReq.get_compiled_model().inputs().size(); + return static_cast(ovInfReq.get_compiled_model().inputs().size()); } void OVInferRequest::StartAsync() {