Skip to content

Commit 49fbc5e

Browse files
committed
OV deprecated api
1 parent 4de1dbf commit 49fbc5e

File tree

1 file changed

+17
-17
lines changed
  • onnxruntime/core/providers/openvino/ov_versions

1 file changed

+17
-17
lines changed

onnxruntime/core/providers/openvino/ov_versions/utils.cc

+17-17
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#pragma GCC diagnostic ignored "-Wunused-parameter"
1212
#endif
1313

14-
#include "openvino/core/deprecated.hpp"
15-
#define IN_OV_COMPONENT
16-
#define NGRAPH_LEGACY_HEADER_INCLUDED
17-
#include <ngraph/frontend/onnx_import/onnx.hpp>
14+
// #include "openvino/core/deprecated.hpp"
15+
// #define IN_OV_COMPONENT
16+
// #define NGRAPH_LEGACY_HEADER_INCLUDED
17+
// #include <ngraph/frontend/onnx_import/onnx.hpp>
1818

19-
#undef NGRAPH_LEGACY_HEADER_INCLUDED
20-
#undef IN_OV_COMPONENT
19+
// #undef NGRAPH_LEGACY_HEADER_INCLUDED
20+
// #undef IN_OV_COMPONENT
2121

2222
#if defined(_MSC_VER)
2323
#pragma warning(default : 4244 4245)
@@ -95,19 +95,19 @@ int GetOnnxOpSet(const GraphViewer& graph_viewer) {
9595
return dm_to_ver.at(kOnnxDomain);
9696
}
9797

98-
std::map<std::string, std::set<std::string>> GetNgSupportedOps(const int onnx_opset) {
99-
std::map<std::string, std::set<std::string>> ng_supported_ops;
100-
OPENVINO_SUPPRESS_DEPRECATED_START
101-
ng_supported_ops.emplace(kOnnxDomain, ngraph::onnx_import::get_supported_operators(onnx_opset, kOnnxDomain));
98+
// std::map<std::string, std::set<std::string>> GetNgSupportedOps(const int onnx_opset) {
99+
// std::map<std::string, std::set<std::string>> ng_supported_ops;
100+
// OPENVINO_SUPPRESS_DEPRECATED_START
101+
// ng_supported_ops.emplace(kOnnxDomain, ngraph::onnx_import::get_supported_operators(onnx_opset, kOnnxDomain));
102102

103-
const std::set<std::string> ng_disabled_ops = {"LSTM"}; // Place-holder for ops not supported.
103+
// const std::set<std::string> ng_disabled_ops = {"LSTM"}; // Place-holder for ops not supported.
104104

105-
for (const auto& disabled_op : ng_disabled_ops) {
106-
ng_supported_ops.at(kOnnxDomain).erase(disabled_op);
107-
}
108-
OPENVINO_SUPPRESS_DEPRECATED_END
109-
return ng_supported_ops;
110-
}
105+
// for (const auto& disabled_op : ng_disabled_ops) {
106+
// ng_supported_ops.at(kOnnxDomain).erase(disabled_op);
107+
// }
108+
// OPENVINO_SUPPRESS_DEPRECATED_END
109+
// return ng_supported_ops;
110+
// }
111111

112112
/**
113113
* Returns a vector clusters(or node_idx). For each unsupported node, the graph is split into 3 parts.

0 commit comments

Comments
 (0)