diff --git a/src/core/include/openvino/runtime/allocator.hpp b/src/core/include/openvino/runtime/allocator.hpp index 650fc8f77c3..7ed91120ddf 100644 --- a/src/core/include/openvino/runtime/allocator.hpp +++ b/src/core/include/openvino/runtime/allocator.hpp @@ -23,6 +23,7 @@ namespace ov { * @deprecated This class will be removed in 2024.0 release * @brief Tries to act like [std::pmr::memory_resource](https://en.cppreference.com/w/cpp/memory/memory_resource) */ +OPENVINO_SUPPRESS_DEPRECATED_START struct OPENVINO_DEPRECATED("Do not inherit from AllocatorImpl. This class will be removed in 2024.0 release. Pass " "std::pmr::memory_resource like object directly to ov::Allocator") AllocatorImpl : public std::enable_shared_from_this { @@ -60,6 +61,7 @@ struct OPENVINO_DEPRECATED("Do not inherit from AllocatorImpl. This class will b protected: virtual ~AllocatorImpl() = default; }; +OPENVINO_SUPPRESS_DEPRECATED_END class Tensor; diff --git a/src/inference/dev_api/openvino/runtime/iremote_tensor.hpp b/src/inference/dev_api/openvino/runtime/iremote_tensor.hpp index f482c9e9e63..6dd34f5e8de 100644 --- a/src/inference/dev_api/openvino/runtime/iremote_tensor.hpp +++ b/src/inference/dev_api/openvino/runtime/iremote_tensor.hpp @@ -17,7 +17,7 @@ namespace ov { class OPENVINO_RUNTIME_API IRemoteTensor : public ITensor { public: - void* data(const element::Type& type = {}) const final { + void* data(const element::Type& type = {}) const override final { OPENVINO_NOT_IMPLEMENTED; }