Remove legacy API from samples (#19608)
This commit is contained in:
@@ -55,7 +55,7 @@ struct InputInfo {
|
||||
std::vector<std::string> fileNames;
|
||||
};
|
||||
using InputsInfo = std::map<std::string, InputInfo>;
|
||||
using PartialShapes = std::map<std::string, ngraph::PartialShape>;
|
||||
using PartialShapes = std::map<std::string, ov::PartialShape>;
|
||||
} // namespace benchmark_app
|
||||
|
||||
bool can_measure_as_static(const std::vector<benchmark_app::InputsInfo>& app_input_info);
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
using std::setprecision;
|
||||
|
||||
// clang-format off
|
||||
#include "openvino/openvino.hpp"
|
||||
#include "slog.hpp"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "openvino/openvino.hpp"
|
||||
#include "openvino/opsets/opset1.hpp"
|
||||
#include "openvino/opsets/opset8.hpp"
|
||||
#include "ngraph/util.hpp"
|
||||
|
||||
#include "samples/args_helper.hpp"
|
||||
#include "samples/common.hpp"
|
||||
@@ -74,8 +73,8 @@ ov::Tensor read_weights(const std::string& filepath) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Create ngraph function
|
||||
* @return Ptr to ngraph function
|
||||
* @brief Create ov::Model
|
||||
* @return Ptr to ov::Model
|
||||
*/
|
||||
std::shared_ptr<ov::Model> create_model(const std::string& path_to_weights) {
|
||||
const ov::Tensor weights = read_weights(path_to_weights);
|
||||
|
||||
@@ -293,7 +293,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// --------------------------- Exporting gna model using InferenceEngine AOT API---------------------
|
||||
// --------------------------- Exporting gna model using OpenVINO API---------------------
|
||||
if (!FLAGS_wg.empty()) {
|
||||
slog::info << "Writing GNA Model to file " << FLAGS_wg << slog::endl;
|
||||
t0 = Time::now();
|
||||
|
||||
Reference in New Issue
Block a user