Removed ov::runtime namespace (#9781)

* Removed ov::runtime namespace

* clang-format

* Fixes

* template reference

* Fixes
This commit is contained in:
Ilya Lavrenov
2022-01-20 16:17:57 +03:00
committed by GitHub
parent 29c3b8e201
commit 8f3d030d79
362 changed files with 4231 additions and 4262 deletions

View File

@@ -80,7 +80,7 @@ int main(int argc, char* argv[]) {
throw std::logic_error("No suitable images were found");
// -------- Step 1. Initialize OpenVINO Runtime Core --------
ov::runtime::Core core;
ov::Core core;
// -------- Step 2. Read a model --------
slog::info << "Loading model files:" << slog::endl << FLAGS_m << slog::endl;
@@ -145,14 +145,14 @@ int main(int argc, char* argv[]) {
// -------- Step 6. Loading model to the device --------
slog::info << "Loading model to the device " << FLAGS_d << slog::endl;
ov::runtime::CompiledModel compiled_model = core.compile_model(model, FLAGS_d);
ov::CompiledModel compiled_model = core.compile_model(model, FLAGS_d);
// -------- Step 7. Create infer request --------
slog::info << "Create infer request" << slog::endl;
ov::runtime::InferRequest infer_request = compiled_model.create_infer_request();
ov::InferRequest infer_request = compiled_model.create_infer_request();
// -------- Step 8. Combine multiple input images as batch --------
ov::runtime::Tensor input_tensor = infer_request.get_input_tensor();
ov::Tensor input_tensor = infer_request.get_input_tensor();
for (size_t image_id = 0; image_id < images_data.size(); ++image_id) {
const size_t image_size = shape_size(model->input().get_shape()) / batchSize;
@@ -199,7 +199,7 @@ int main(int argc, char* argv[]) {
slog::info << "Completed async requests execution" << slog::endl;
// -------- Step 11. Process output --------
ov::runtime::Tensor output = infer_request.get_output_tensor();
ov::Tensor output = infer_request.get_output_tensor();
// Read labels from file (e.x. AlexNet.labels)
std::string labelFileName = fileNameNoExt(FLAGS_m) + ".labels";