[CPU] Add deprecation message to extension API (#20970)

This commit is contained in:
River Li authored and GitHub committed 2023-11-13 10:37:35 +04:00
1 parent 306137f86b
commit fef0df6ee1
2 files changed
+11 -1

No files matched your search

+7 -1
View File
@@ -820,6 +820,12 @@ ov::Any Engine::get_ro_property(const std::string& name, const ov::AnyMap& optio
return get_metric_legacy(name, options);
}
OPENVINO_SUPPRESS_DEPRECATED_START
void Engine::add_extension(const InferenceEngine::IExtensionPtr& extension) {
extensionManager->AddExtension(extension);
}
OPENVINO_SUPPRESS_DEPRECATED_END
ov::SupportedOpsMap Engine::query_model(const std::shared_ptr<const ov::Model>& model, const ov::AnyMap& config) const {
WeightsSharing::Ptr fake_w_cache;
@@ -839,7 +845,7 @@ ov::SupportedOpsMap Engine::query_model(const std::shared_ptr<const ov::Model>&
const Config::SnippetsMode snippetsMode = getSnippetsMode(config, conf);
auto context =
std::make_shared<GraphContext>(conf, nullptr, fake_w_cache, false);
std::make_shared<GraphContext>(conf, extensionManager, fake_w_cache, false);
auto supported = ov::get_supported_nodes(
model,
+4
View File
@@ -57,6 +57,10 @@ public:
"get_default_context is not supported by CPU plugin!");
};
OPENVINO_SUPPRESS_DEPRECATED_START
void add_extension(const std::shared_ptr<InferenceEngine::IExtension>& extension) override;
OPENVINO_SUPPRESS_DEPRECATED_END
private:
bool is_legacy_api() const;