Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2020-08-11 22:30:14 +0300
committerKenneth Heafield <github@kheafield.com>2020-08-11 22:30:14 +0300
commit5b511ea0ad84de1dadb047424ea4726bc250857b (patch)
tree37a28a8a91e7bf5794c864ff18a549c506633b35
parente6b361b62dc66092239f3f3e6d7a9de8573d8b34 (diff)
One more MSVC warning
-rw-r--r--test/add127_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/add127_test.cc b/test/add127_test.cc
index 451d5cf..d6e92ee 100644
--- a/test/add127_test.cc
+++ b/test/add127_test.cc
@@ -185,8 +185,8 @@ template <class Routine> void TestMultiplyShiftNonShift(Index A_rows, Index widt
Routine::Multiply(A_prep_old.begin(), B_prep.begin(), A_rows, width, B_cols, callbacks::UnquantizeAndAddBiasAndWrite(unquant_mult, bias.begin(), slowint_C.begin()));
AlignedVector<float> float_C(test_C.size());
- references::Multiply(A.begin(), B.begin(), float_C.begin(), A_rows, width, B_cols, [&](float sum, const callbacks::OutputBufferInfo& info) {
- return sum + bias[info.col_idx];
+ references::Multiply(A.begin(), B.begin(), float_C.begin(), A_rows, width, B_cols, [&](double sum, const callbacks::OutputBufferInfo& info) {
+ return static_cast<float>(sum) + bias[info.col_idx];
});
/*