public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: aanokhov <artyom.anokhov@intel.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openvino] origin/pr/7/head: Added pybind11-call_guard-compat.patch
Date: Wed, 10 Jun 2026 16:59:31 GMT	[thread overview]
Message-ID: <178111077111.1.15868757286729082445.rpms-openvino-b28e225b098a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/openvino
Branch : origin/pr/7/head
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=origin/pr/7/head

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!

                 reply	other threads:[~2026-06-10 16:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178111077111.1.15868757286729082445.rpms-openvino-b28e225b098a@fedoraproject.org \
    --to=artyom.anokhov@intel.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox