public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] rawhide: Added pybind11-call_guard-compat.patch
@ 2026-06-11 16:12 aanokhov
  0 siblings, 0 replies; only message in thread
From: aanokhov @ 2026-06-11 16:12 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/openvino
Branch : rawhide
Commit : b28e225b098af6ca8a525b9e773af78f9f4d936d
Author : aanokhov <artyom.anokhov@intel.com>
Date   : 2026-06-08T08:07:06+00:00
Stats  : +37/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/openvino/c/b28e225b098af6ca8a525b9e773af78f9f4d936d?branch=rawhide

Log:
Added pybind11-call_guard-compat.patch

---
diff --git a/pybind11-call_guard-compat.patch b/pybind11-call_guard-compat.patch
new file mode 100755
index 0000000..cb689b2
--- /dev/null
+++ b/pybind11-call_guard-compat.patch
@@ -0,0 +1,37 @@
+diff --git a/src/bindings/python/src/pyopenvino/core/core.cpp b/src/bindings/python/src/pyopenvino/core/core.cpp
+index 241b092765..140c0b0bb1 100644
+--- a/src/bindings/python/src/pyopenvino/core/core.cpp
++++ b/src/bindings/python/src/pyopenvino/core/core.cpp
+@@ -456,7 +456,10 @@ void regclass_Core(py::module m) {
+     cls.def(
+         "read_model",
+         (std::shared_ptr<ov::Model>(ov::Core::*)(const std::string&, const ov::Tensor&) const) & ov::Core::read_model,
+-        py::call_guard<py::gil_scoped_release>(),
++        py::cpp_function([](InferRequestWrapper& self) {
++            py::gil_scoped_release release;
++            return self.m_request.get_profiling_info();
++        }),
+         py::arg("model"),
+         py::arg("weights"),
+         R"(
+diff --git a/src/bindings/python/src/pyopenvino/core/infer_request.cpp b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
+index b7e41b3153..2d17cd1f17 100644
+--- a/src/bindings/python/src/pyopenvino/core/infer_request.cpp
++++ b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
+@@ -817,12 +817,11 @@ void regclass_InferRequest(py::module m) {
+             :rtype: float
+         )");
+ 
+-    cls.def_property_readonly(
+-        "profiling_info",
+-        [](InferRequestWrapper& self) {
++     cls.def_property_readonly("profiling_info",
++        py::cpp_function([](InferRequestWrapper& self) {
++            py::gil_scoped_release release;
+             return self.m_request.get_profiling_info();
+-        },
+-        py::call_guard<py::gil_scoped_release>(),
++        }),
+         R"(
+             Performance is measured per layer to get feedback on the most time-consuming operation.
+             Not all plugins provide meaningful data!

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-11 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 16:12 [rpms/openvino] rawhide: Added pybind11-call_guard-compat.patch aanokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox