diff options
author | Mateusz Chudyk <mateuszchudyk@gmail.com> | 2019-05-24 15:45:11 +0300 |
---|---|---|
committer | Mateusz Chudyk <mateuszchudyk@gmail.com> | 2019-06-18 16:38:53 +0300 |
commit | f0785bea3b42a8e5ab7e322b5ad0dc1e9018d65f (patch) | |
tree | acee1462bbf5fd31ec58a1988c2d4f03009eefcf /example.cc | |
parent | 5239e8820c3afa68abd679bfe7cad7e7b9b9893e (diff) |
Add support for postprocess pipeline
Diffstat (limited to 'example.cc')
-rw-r--r-- | example.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ int main() { AlignedVector<float> C(A_rows * B_cols); // Do the actual multiply. - intgemm::Int16::Multiply(A_prepared.begin(), B_prepared.begin(), intgemm::JustUnquantizeC(C.begin(), 1.0 / (quant_mult * quant_mult)), A_rows, width, B_cols); + intgemm::Int16::Multiply(A_prepared.begin(), B_prepared.begin(), C.begin(), intgemm::CreatePostprocessPipeline(intgemm::Unquantize(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); } @@ -70,7 +70,7 @@ int main() { AlignedVector<float> C(A_rows * B_cols); // Do the actual multiply. - intgemm::Int8::Multiply(A_prepared.begin(), B_prepared.begin(), intgemm::JustUnquantizeC(C.begin(), 1.0 / (quant_mult * quant_mult)), A_rows, width, B_cols); + intgemm::Int8::Multiply(A_prepared.begin(), B_prepared.begin(), C.begin(), intgemm::CreatePostprocessPipeline(intgemm::Unquantize(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); } |