diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-08-11 01:38:44 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-08-11 01:38:44 +0300 |
commit | 997c010fd551f74df09feffa5b2f31c62e4b5399 (patch) | |
tree | 096f8052c46dbf8e6e3042753c1e6449ea8f2563 | |
parent | 94b2f0b8601758539f73f6b40952ca82e900b7fb (diff) |
MSVC: be pedantic about floats
-rw-r--r-- | benchmarks/biasmultiply.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/biasmultiply.cc b/benchmarks/biasmultiply.cc index 8f0816f..2eae915 100644 --- a/benchmarks/biasmultiply.cc +++ b/benchmarks/biasmultiply.cc @@ -100,8 +100,8 @@ std::chrono::duration<double> testOld_nobias(Index A_rows, Index width, Index B_ } float alpha = 2.0f; - float quant_mult = 127/alpha; - float unquant_mult = 1.0/(quant_mult*quant_mult); + float quant_mult = 127.0f / alpha; + float unquant_mult = 1.0f / (quant_mult*quant_mult); AlignedVector<int8_t> A_prep(A.size()); AlignedVector<int8_t> B_prep(B.size()); |