From 7ecb72180728756efda3566a8a7b25e36c690ee7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Jul 2019 19:11:48 -0700 Subject: utils: converter_benchmark: Fix scaling for sc16->fc32 --- host/utils/converter_benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp index 07aec9170..d00255d0c 100644 --- a/host/utils/converter_benchmark.cpp +++ b/host/utils/converter_benchmark.cpp @@ -46,8 +46,8 @@ void configure_conv( { if (in_type == "sc16") { if (out_type == "fc32") { - std::cout << "Setting scalar to 32767." << std::endl; - conv->set_scalar(32767.); + std::cout << "Setting scalar to 1./32767." << std::endl; + conv->set_scalar(1./32767.); return; } } -- cgit v1.2.3