Support float64 data type as input of benchmark_app (#16435)

This commit is contained in:
Jade Cho 2023-03-23 13:55:55 +09:00 committed by GitHub
parent a205c675db
commit a20b3631fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,10 @@ void fill_buffer_random(void* inputBuffer,
void fill_buffer(void* inputBuffer, size_t elementsNum, const ov::element::Type& type) {
if (type == ov::element::f32) {
fill_buffer_random<float, float>(inputBuffer, elementsNum);
} else if (type == ov::element::f64) {
fill_buffer_random<double, double>(inputBuffer, elementsNum);
} else if (type == ov::element::f16) {
fill_buffer_random<short, short>(inputBuffer, elementsNum);
fill_buffer_random<ov::float16, float>(inputBuffer, elementsNum);
} else if (type == ov::element::i32) {
fill_buffer_random<int32_t, int32_t>(inputBuffer, elementsNum);
} else if (type == ov::element::i64) {