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 23:15:26 +0300
committerKenneth Heafield <github@kheafield.com>2020-08-11 23:15:26 +0300
commitdf741129c67814b5732948f137717cfb24cc5647 (patch)
treeb4437d7220e3b2ce2fe7d1b75be53c78b7ea4128
parentdf9bbe98d336d5204a1fc69b69dd5ec6cc449a97 (diff)
Microsoft wants one more cast
-rw-r--r--test/quantize_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/quantize_test.cc b/test/quantize_test.cc
index 9f221a4..d2f6304 100644
--- a/test/quantize_test.cc
+++ b/test/quantize_test.cc
@@ -89,7 +89,7 @@ template <class Backend> bool Test(const float *input_unaligned, float quant_mul
AlignedVector<Integer> ref(size);
AlignedVector<Integer> test(size);
QuantizeRef(input.begin(), ref.begin(), quant_mult, static_cast<Index>(size));
- Backend::Quantize(input.begin(), test.begin(), quant_mult, size);
+ Backend::Quantize(input.begin(), test.begin(), quant_mult, static_cast<Index>(size));
for (std::size_t i = 0; i < size; ++i) {
if (IsOff(input[i] * quant_mult, ref[i], test[i])) {
UNSCOPED_INFO("Error at " << i << " from " << input[i] << '*' << quant_mult << '=' << (input[i]*quant_mult) << " ref = " << static_cast<int>(ref[i]) << " test = " << static_cast<int>(test[i]));