Skip to content

Commit

Permalink
Fix ov RTTI (#26895)
Browse files Browse the repository at this point in the history
### Details:
fix ov RTTI
cherry-picked from
#26630

### Tickets:
 - *CVS-151640*
  • Loading branch information
itikhono authored Oct 3, 2024
1 parent 890f2e1 commit 65c99fb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/include/openvino/op/sink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace op {
class OPENVINO_API Sink : public Op {
public:
~Sink() override = 0;
OPENVINO_OP("Sink");
OPENVINO_OP("Sink", "util", Op);

protected:
Sink() : Op() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace util {
/// \brief Base class for operations like back propagation convolution
class OPENVINO_API ConvolutionBackPropBase : public ConvolutionBase {
public:
OPENVINO_OP("ConvolutionBackPropBase", "util");
OPENVINO_OP("ConvolutionBackPropBase", "util", ConvolutionBase);

/// \brief Constructs a conversion operation.
ConvolutionBackPropBase() = default;
Expand Down
2 changes: 1 addition & 1 deletion src/core/include/openvino/op/util/convolution_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class OPENVINO_API ConvolutionBase : public Op {
/// \brief Base class for operations like back propagation convolution
class OPENVINO_API ConvolutionFwdPropBase : public ConvolutionBase {
public:
OPENVINO_OP("ConvolutionFwdPropBase", "util");
OPENVINO_OP("ConvolutionFwdPropBase", "util", ConvolutionBase);

/// \brief Constructs a conversion operation.
ConvolutionFwdPropBase() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace util {
/// v8.
class OPENVINO_API DeformableConvolutionBase : public util::ConvolutionBase {
public:
OPENVINO_OP("DeformableConvolutionBase", "util");
OPENVINO_OP("DeformableConvolutionBase", "util", util::ConvolutionBase);

/// \brief Constructs a conversion operation.
DeformableConvolutionBase() = default;
Expand Down
2 changes: 1 addition & 1 deletion src/core/include/openvino/op/util/framework_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class OPENVINO_API FrameworkNodeAttrs {

class OPENVINO_API FrameworkNode : public MultiSubGraphOp {
public:
OPENVINO_OP("FrameworkNode", "util");
OPENVINO_OP("FrameworkNode", "util", MultiSubGraphOp);

FrameworkNode() = default;

Expand Down
2 changes: 1 addition & 1 deletion src/core/include/openvino/op/util/multi_subgraph_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace util {
///
class OPENVINO_API MultiSubGraphOp : public ov::op::Sink {
public:
OPENVINO_OP("MultiSubGraphOp", "util");
OPENVINO_OP("MultiSubGraphOp", "util", ov::op::Sink);
/// \brief Abstract class describes a connection between a MultiSubGraphOp input and
/// the body.
class InputDescription {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class InternalOperation : public ov::frontend::tensorflow::FrameworkNode {
m_no_conversion_reason(no_conversion_reason) {}

public:
OPENVINO_OP("InternalOperation", "util", ov::frontend::tensorflow::FrameworkNode);
// get a reason why some operation is unable to convert to OpenVINO opset
// we store this information for InternalOperation to elaborate the reason
// for cases such as Constant node of string type
Expand Down

0 comments on commit 65c99fb

Please sign in to comment.