-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RTTI] Make is_type dependent to OV dynamic cast selection #28858
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
src/common/transformations/tests/op_conversions/sdpa_to_paged_attention_test.cpp
Outdated
Show resolved
Hide resolved
@itikhono please review |
Is the issue on Jenkins caused by current changes?
|
I think so .. debugging locally. |
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
@ilya-lavrenov After my recent changes with |
@@ -11,9 +11,10 @@ | |||
namespace ov { | |||
namespace frontend { | |||
namespace onnx { | |||
class ConversionExtension : public ConversionExtensionBase { | |||
class ONNX_FRONTEND_API ConversionExtension : public ConversionExtensionBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have explicitly removed all exports from conversion extension classes here #28834 to avoid dependency on frontend.so in case of external extensions like openvino_tokenizers (before, they depended on TF FE because of TF FE conversion extension)
Why do we need to return it back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was the only solution I found to fix failing macos wheel test. I'll check other possibilities not breaking deps.
@@ -81,20 +81,28 @@ namespace frontend { | |||
class ConversionExtensionBase; | |||
} // namespace frontend | |||
|
|||
namespace compile { | |||
template <typename T> | |||
constexpr bool use_ov_dynamic_cast() { | |||
return std::is_base_of_v<ov::frontend::ConversionExtensionBase, T>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now use_ov_dynamic_cast depends only on ConversionExtensionBase which is specific to frontends. Can this check be moved to frontends common part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd imply dependency of almost all the objects to frontend/common, mostly not needed but affecting build time.
Details:
ov::is_type
function template by function parameter type: pointer orstd::shared_ptr
.ov::is_type
function templates.Tickets: