[benhmark_app] Fix I8 input random generation (#12502)

This commit is contained in:
Andrii Pavliuk authored and GitHub committed 2022-09-12 15:21:40 +03:00
1 parent 006f798f91
commit 69f709028a
1 file changed
+3 -1
+3 -1
View File
@@ -349,7 +349,9 @@ ov::Tensor get_random_tensor(const std::pair<std::string, benchmark_app::InputIn
} else if (type == ov::element::i8) {
// uniform_int_distribution<int8_t> is not allowed in the C++17 standard
// and vs2017/19
return create_tensor_random<int8_t, int32_t>(inputInfo.second);
return create_tensor_random<int8_t, int32_t>(inputInfo.second,
std::numeric_limits<int8_t>::min(),
std::numeric_limits<int8_t>::max());
} else if (type == ov::element::u16) {
return create_tensor_random<uint16_t, uint16_t>(inputInfo.second);
} else if (type == ov::element::i16) {