Benchmark_app: incorrect indexing during precision set is fixed (#10033)

* Precision problem fix. Behavior of auto precision conversion to U8 (in case of image) is changed

* stylefix
This commit is contained in:
Fedor Zharinov
2022-02-01 15:58:48 +03:00
committed by GitHub
parent ca09ddd123
commit 6845392aa6

View File

@@ -488,7 +488,8 @@ int main(int argc, char* argv[]) {
type_to_set = iop_precision;
} else if (input_precision != ov::element::undefined) {
type_to_set = input_precision;
} else if (!name.empty() && app_inputs_info[0].at(name).is_image()) {
} else if (!name.empty() && app_inputs_info[0].at(name).is_image() &&
(inputFiles.count("") || inputFiles.count(name))) {
// image input, set U8
type_to_set = ov::element::u8;
}