Remove legacy API from samples (#19608)

This commit is contained in:
Ilya Churaev
2023-09-05 22:16:18 +04:00
committed by GitHub
parent 1d62f0141d
commit dc1339d8e3
4 changed files with 4 additions and 7 deletions

View File

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

View File

@@ -23,8 +23,6 @@
#include <utility>
#include <vector>
using std::setprecision;
// clang-format off
#include "openvino/openvino.hpp"
#include "slog.hpp"

View File

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

View File

@@ -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();