From a2dc739da45ade2f48825de80aa265c2c28bac9b Mon Sep 17 00:00:00 2001 From: Jan Iwaszkiewicz Date: Thu, 19 Jan 2023 12:38:46 +0100 Subject: [PATCH] [PyOV] Add new types to Any dispatcher (#15194) --- src/bindings/python/src/pyopenvino/utils/utils.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bindings/python/src/pyopenvino/utils/utils.cpp b/src/bindings/python/src/pyopenvino/utils/utils.cpp index 440292e002a..628a1765cee 100644 --- a/src/bindings/python/src/pyopenvino/utils/utils.cpp +++ b/src/bindings/python/src/pyopenvino/utils/utils.cpp @@ -34,6 +34,8 @@ py::object from_ov_any(const ov::Any& any) { // Check for unsigned int else if (any.is()) { return py::cast(any.as()); + } else if (any.is()) { + return py::cast(any.as()); } // Check for float else if (any.is()) { @@ -85,6 +87,14 @@ py::object from_ov_any(const ov::Any& any) { else if (any.is>()) { return py::cast(any.as>()); } + // Check for std::map + else if (any.is>()) { + return py::cast(any.as>()); + } + // Check for std::map + else if (any.is>()) { + return py::cast(any.as>()); + } // Check for std::vector else if (any.is>()) { auto val = any.as>();