Skip to content

Commit 9c2fee5

Browse files
[OVEP] Fix for deprecated OV element type (#597)
1 parent 3dc24ef commit 9c2fee5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/backends/basic_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void BasicBackend::PopulateConfigValue(ov::AnyMap& device_config) {
167167
if (session_context_.precision.find("ACCURACY") != std::string::npos &&
168168
session_context_.device_type.find("GPU") != std::string::npos) {
169169
if (session_context_.OpenVINO_Version.at(0) >= 2024) {
170-
device_config.emplace(ov::hint::inference_precision(ov::element::undefined));
170+
device_config.emplace(ov::hint::inference_precision(ov::element::dynamic));
171171
device_config.emplace(ov::hint::execution_mode(ov::hint::ExecutionMode::ACCURACY));
172172
} else {
173173
if (!subgraph_context_.model_precision.empty())

onnxruntime/test/testdata/custom_op_openvino_wrapper_library/openvino_wrapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static ov::element::Type ConvertONNXToOVType(ONNXTensorElementDataType onnx_type
3535
case ONNX_TENSOR_ELEMENT_DATA_TYPE_BFLOAT16:
3636
return ov::element::bf16;
3737
default:
38-
return ov::element::undefined;
38+
return ov::element::dynamic;
3939
}
4040
}
4141

0 commit comments

Comments
 (0)