mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Fix for C4267 warning (#23610)
### Description
A recent
[commit](1fce51b3b2)
is causing an OVEP warning in
[openvino_provider_factory.cc](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/providers/openvino/openvino_provider_factory.cc#L151).
This PR fixes the warning.
### Motivation and Context
Minor fix
This commit is contained in:
parent
002916acb0
commit
01145511b1
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<uint32_t>(ovInfReq.get_compiled_model().inputs().size());
|
||||
}
|
||||
|
||||
void OVInferRequest::StartAsync() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue