diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2019-04-18 01:08:55 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2019-04-18 01:08:55 +0300 |
commit | 2ae6e66e4c4f1727208e795c26361f47d4706b3c (patch) | |
tree | 2c15f6294f6d096c3bbcf9b2749c112c64b3e9d3 /example.cc | |
parent | 5917f933a2690f13a331bff9bbd090e618b06886 (diff) |
templatedit
Diffstat (limited to 'example.cc')
-rw-r--r-- | example.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |