Removed WA for CPU interpolate NHWC (#8686)

This commit is contained in:
Ilya Lavrenov
2021-11-19 11:38:06 +03:00
committed by GitHub
parent 2777820882
commit 1ca9592d75
3 changed files with 29 additions and 43 deletions

View File

@@ -27,8 +27,6 @@
#include "classification_sample_async.h"
#include "openvino/openvino.hpp"
using namespace ov::preprocess;
/**
* @brief Checks input args
* @param argc number of args
@@ -104,9 +102,9 @@ int main(int argc, char* argv[]) {
// -------- Step 3. Apply preprocessing --------
const ov::Layout tensor_layout{"NHWC"};
PrePostProcessor proc(model);
ov::preprocess::PrePostProcessor proc(model);
// 1) input() with no args assumes a model has a single input
InputInfo& input_info = proc.input();
ov::preprocess::InputInfo& input_info = proc.input();
// 2) Set input tensor information:
// - precision of tensor is supposed to be 'u8'
// - layout of data is 'NHWC'