Added constructor from string for element Type (#16643)

* Added constructor from string for element Type

* Fixed code style

* Removed WA for tests
This commit is contained in:
Ilya Churaev authored and GitHub committed 2023-03-31 07:24:32 +00:00
1 parent 73e75c58ba
commit 1b9bd61767
7 files changed
+95 -76

No files matched your search

@@ -82,13 +82,13 @@ int runPipeline(const std::string &model, const std::string &device, const bool
if (ip) {
const auto inputs = cnnNetwork->inputs();
for (size_t i = 0; i < inputs.size(); i++) {
preprocessor.input(i).tensor().set_element_type(getType(inputPrecision));
preprocessor.input(i).tensor().set_element_type(ov::element::Type(inputPrecision));
}
}
if (op) {
const auto outputs = cnnNetwork->outputs();
for (size_t i = 0; i < outputs.size(); i++) {
preprocessor.output(i).tensor().set_element_type(getType(outputPrecision));
preprocessor.output(i).tensor().set_element_type(ov::element::Type(outputPrecision));
}
}
cnnNetwork = preprocessor.build();