Skip to content

Commit 69f7090

Browse files
authored
[benhmark_app] Fix I8 input random generation (#12502)
1 parent 006f798 commit 69f7090

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/cpp/benchmark_app/inputs_filling.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ ov::Tensor get_random_tensor(const std::pair<std::string, benchmark_app::InputIn
349349
} else if (type == ov::element::i8) {
350350
// uniform_int_distribution<int8_t> is not allowed in the C++17 standard
351351
// and vs2017/19
352-
return create_tensor_random<int8_t, int32_t>(inputInfo.second);
352+
return create_tensor_random<int8_t, int32_t>(inputInfo.second,
353+
std::numeric_limits<int8_t>::min(),
354+
std::numeric_limits<int8_t>::max());
353355
} else if (type == ov::element::u16) {
354356
return create_tensor_random<uint16_t, uint16_t>(inputInfo.second);
355357
} else if (type == ov::element::i16) {

0 commit comments

Comments
 (0)