set U8 precision for image-like inputs even in case of random filling (#10140)

This commit is contained in:
Fedor Zharinov
2022-02-07 12:09:16 +03:00
committed by GitHub
parent ac28063b19
commit 38f470c184

View File

@@ -499,8 +499,7 @@ 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() &&
(inputFiles.count("") || inputFiles.count(name))) {
} else if (!name.empty() && app_inputs_info[0].at(name).is_image()) {
// image input, set U8
type_to_set = ov::element::u8;
}