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

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Bogoychev <nheart@gmail.com>2019-04-18 01:08:55 +0300
committerNikolay Bogoychev <nheart@gmail.com>2019-04-18 01:08:55 +0300
commit2ae6e66e4c4f1727208e795c26361f47d4706b3c (patch)
tree2c15f6294f6d096c3bbcf9b2749c112c64b3e9d3 /example.cc
parent5917f933a2690f13a331bff9bbd090e618b06886 (diff)
templatedit
Diffstat (limited to 'example.cc')
-rw-r--r--example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.cc b/example.cc
index 9ec9a7c..f68dd03 100644
--- a/example.cc
+++ b/example.cc
@@ -49,7 +49,7 @@ int main() {
AlignedVector<float> C(A_rows * B_cols);
// Do the actual multiply.
- intgemm::Int16<intgemm::JustUnquantizeC>::Multiply(A_prepared.get(), B_prepared.get(), C.get(), 1.0 / (quant_mult * quant_mult), A_rows, width, B_cols);
+ intgemm::Int16<intgemm::JustUnquantizeC>::Multiply(A_prepared.get(), B_prepared.get(), intgemm::JustUnquantizeC(C.get(), 1.0 / (quant_mult * quant_mult)), A_rows, width, B_cols);
// Sanity check. C will be row major.
assert(fabs(C[0] - top_left_reference) < 0.05);
}
@@ -68,7 +68,7 @@ int main() {
AlignedVector<float> C(A_rows * B_cols);
// Do the actual multiply.
- intgemm::Int8<intgemm::JustUnquantizeC>::Multiply(A_prepared.get(), B_prepared.get(), C.get(), 1.0 / (quant_mult * quant_mult), A_rows, width, B_cols);
+ intgemm::Int8<intgemm::JustUnquantizeC>::Multiply(A_prepared.get(), B_prepared.get(), intgemm::JustUnquantizeC(C.get(), 1.0 / (quant_mult * quant_mult)), A_rows, width, B_cols);
// Sanity check. C will be row major.
assert(fabs(C[0] - top_left_reference) < 0.05);
}