OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Rtti fix (#35443)
Jeevaka Prabu Badrappan5f388e7daaab
diff --git a/src/core/include/openvino/core/type.hpp b/src/core/include/openvino/core/type.hppindex 09e5be9cb64..1e40044dd47 100644--- a/src/core/include/openvino/core/type.hpp+++ b/src/core/include/openvino/core/type.hpp@@ -83,7 +83,11 @@ class ConversionExtensionBase;template <typename T>constexpr bool use_ov_dynamic_cast() {+#if defined(__ANDROID__)+ return true;+#elsereturn std::is_base_of_v<ov::frontend::ConversionExtensionBase, T>;+#endif}/// \brief Tests if value is a pointer/shared_ptr that can be statically cast to adiff --git a/src/core/include/openvino/op/one_hot.hpp b/src/core/include/openvino/op/one_hot.hppindex 6f740c5724f..f6f994e4b92 100644--- a/src/core/include/openvino/op/one_hot.hpp+++ b/src/core/include/openvino/op/one_hot.hpp@@ -14,7 +14,7 @@ namespace v1 {/// \ingroup ov_ops_cpp_apiclass OPENVINO_API OneHot : public util::OneHotBase {public:- OPENVINO_OP("OneHot", "opset1", op::Op);+ OPENVINO_OP("OneHot", "opset1", util::OneHotBase);/// \brief Constructs a one-hot operation.OneHot() = default;@@ -48,7 +48,7 @@ namespace v16 {/// \ingroup ov_ops_cpp_apiclass OPENVINO_API OneHot : public util::OneHotBase {public:- OPENVINO_OP("OneHot", "opset16", op::Op);+ OPENVINO_OP("OneHot", "opset16", util::OneHotBase);/// \brief Lists the supported negative indices modes for this version of the operator./// See the specification for the description of how negative indices are handled.diff --git a/src/core/include/openvino/op/squeeze.hpp b/src/core/include/openvino/op/squeeze.hppindex aa940e009e3..19ca742b1cc 100644--- a/src/core/include/openvino/op/squeeze.hpp+++ b/src/core/include/openvino/op/squeeze.hpp@@ -14,7 +14,7 @@ namespace v0 {/// \ingroup ov_ops_cpp_apiclass OPENVINO_API Squeeze : public util::SqueezeBase {public:- OPENVINO_OP("Squeeze", "opset1");+ OPENVINO_OP("Squeeze", "opset1", util::SqueezeBase);Squeeze();/// \brief Constructs a squeeze v0 operation.@@ -43,7 +43,7 @@ namespace v15 {/// \ingroup ov_ops_cpp_apiclass OPENVINO_API Squeeze : public util::SqueezeBase {public:- OPENVINO_OP("Squeeze", "opset15");+ OPENVINO_OP("Squeeze", "opset15", util::SqueezeBase);Squeeze();/// \brief Constructs a squeeze v15 operation.diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hppindex 8204217ed27..92f9bb39754 100644--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp@@ -528,7 +528,7 @@ typename Opt::ValueType Config::get() const {OPENVINO_ASSERT(it->second != nullptr, "Got NULL OptionValue for :", Opt::key().data());const auto optVal = std::dynamic_pointer_cast<details::OptionValueImpl<Opt, ValueType>>(it->second);-#if defined(__CHROMIUMOS__)+#if defined(__CHROMIUMOS__) || defined(__ANDROID__)if (optVal == nullptr) {if (Opt::getTypeName() == it->second->getTypeName()) {const auto val = std::static_pointer_cast<details::OptionValueImpl<Opt, ValueType>>(it->second);