Fixed deprecated API warnings (#16949)

This commit is contained in:
Ilya Lavrenov 2023-04-17 07:19:53 +04:00 committed by GitHub
parent 18da874c57
commit 31398bb3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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<AllocatorImpl> {
@ -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;

View File

@ -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;
}