Skip to content

Commit 91a105e

Browse files
ov_interface.cc: Fix compilation errors in Debug build (#642)
1 parent 52f1476 commit 91a105e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

onnxruntime/core/providers/openvino/ov_interface.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ OVExeNetwork OVCore::CompileModel(std::shared_ptr<const OVNetwork>& ie_cnn_netwo
143143
auto obj = core.compile_model(ie_cnn_network, hw_target, device_config);
144144
exe = OVExeNetwork(obj, hw_target);
145145
}
146+
146147
#ifndef NDEBUG
147-
printDebugInfo(obj);
148+
printDebugInfo(exe.Get());
148149
#endif
150+
149151
return exe;
150152
} catch (const Exception& e) {
151153
ORT_THROW(log_tag + " Exception while Loading Network for graph: " + name + e.what());
@@ -240,7 +242,7 @@ OVExeNetwork OVCore::ImportModel(std::istream& model_stream,
240242
}
241243

242244
#ifndef NDEBUG
243-
printDebugInfo(obj);
245+
printDebugInfo(exe.Get());
244246
#endif
245247
return exe;
246248
} catch (const Exception& e) {

0 commit comments

Comments
 (0)