From 16352b07782e2c49bbabd1d8ba8d950022eb60a5 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Thu, 20 Jun 2024 10:10:24 +0200 Subject: [PATCH] Error fix. --- src/bindings/python/src/pyopenvino/frontend/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/src/pyopenvino/frontend/manager.cpp b/src/bindings/python/src/pyopenvino/frontend/manager.cpp index 99058d9152661e..408bb224f7679b 100644 --- a/src/bindings/python/src/pyopenvino/frontend/manager.cpp +++ b/src/bindings/python/src/pyopenvino/frontend/manager.cpp @@ -79,7 +79,7 @@ void regclass_frontend_FrontEndManager(py::module m) { fem.def( "load_by_model", [](const std::shared_ptr& fem, const py::object& model) { - if (py::isinstance(model, py::module_::import("pathlib").attr("Path"))) { + if (py::isinstance(model, py::module_::import("pathlib").attr("Path")) || py::isinstance(model)) { std::string model_path = Common::utils::convert_path_to_string(model); // Fix unicode path