From 3c03bcfbad1f195c82f5d8d70db213b5009fdc81 Mon Sep 17 00:00:00 2001 From: Jerin Philip Date: Thu, 14 Apr 2022 13:28:26 +0000 Subject: [PATCH] In place no new alloc multiply int32_t* = reinterpret_cast for in-place no alloc multiply. --- MozIntGemm/moz_intgemm_ruy.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MozIntGemm/moz_intgemm_ruy.inl b/MozIntGemm/moz_intgemm_ruy.inl index b4d89c6..af354df 100644 --- a/MozIntGemm/moz_intgemm_ruy.inl +++ b/MozIntGemm/moz_intgemm_ruy.inl @@ -86,9 +86,7 @@ void int8MultiplyAndAddBias(const int8_t *input_A_prepared, float scale_A, ruy::MakeSimpleLayout(rows_A, cols_B, ruy::Order::kRowMajor, dst.mutable_layout()); - detail::AlignedVector dst_data(rows_A * cols_B); - std::int32_t *dest_ptr = dst_data.data(); - + std::int32_t *dest_ptr = reinterpret_cast(output); dst.set_data(dest_ptr); // When Dst is int32, mul_params is unused.