Skip to content

Commit 35f0afa

Browse files
CopilotMayureshV1
andauthored
EISW-197119, EISW-197045, EISW-197080: Document import method transition in OVCore::ImportModel (#931)
* Initial plan * Add comment to notify developers about import from tensor vs stream Co-authored-by: MayureshV1 <47039074+MayureshV1@users.noreply.github.com> * Capitalize TODO in comment to follow standard convention Co-authored-by: MayureshV1 <47039074+MayureshV1@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MayureshV1 <47039074+MayureshV1@users.noreply.github.com>
1 parent 685895c commit 35f0afa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

onnxruntime/core/providers/openvino/ov_interface.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ OVExeNetwork OVCore::ImportModel(ModelBlobWrapper& model_blob,
207207
std::string name) {
208208
return OvExceptionBoundary<true>([&]() {
209209
ov::CompiledModel obj;
210+
// Import from tensor enables file mapping and should be used as primary option. Import from stream is only used for OV versions prior to OV25.3.
211+
// TODO: Remove import from stream when OV26.0 support is added and OV 2025.2 support is removed.
210212
#if (OPENVINO_VERSION_MAJOR > 2025 || (OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR >= 3))
211213
if (model_blob.tensor_) {
212214
obj = core.import_model(model_blob.tensor_, hw_target, device_config);

0 commit comments

Comments
 (0)