From 429eb78512f7f03d900a7554e025fafbdfb1ae2e Mon Sep 17 00:00:00 2001 From: Zoltan Szabadka Date: Fri, 3 May 2024 13:26:00 +0000 Subject: [PATCH] Remove unused vars. --- compression/compress-inl.h | 1 - gemma/gemma.cc | 2 -- 2 files changed, 3 deletions(-) diff --git a/compression/compress-inl.h b/compression/compress-inl.h index eb87cf8..fbd054a 100644 --- a/compression/compress-inl.h +++ b/compression/compress-inl.h @@ -247,7 +247,6 @@ struct CompressTraits { using VU32 = hn::VFromD; const VU32 odd = Set(du32, 0xFFFF0000u); - VF32 be0, bo0, be1, bo1; for (size_t i = 0; i < num; /* i += 2 * N */) { const auto interleaved0 = hn::LoadU(dbf16, in + in_ofs + i); const VF32 ae0 = Load(df32, vec_aligned + i); diff --git a/gemma/gemma.cc b/gemma/gemma.cc index 40a7ac5..1599627 100644 --- a/gemma/gemma.cc +++ b/gemma/gemma.cc @@ -585,7 +585,6 @@ HWY_NOINLINE void GriffinRecurrent( // X / Y linear layers. for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) { const size_t batch_offset = batch_idx * kModelDim; - const size_t pos = batch_start + batch_idx; float* HWY_RESTRICT y = activations.griffin_y.data() + batch_offset; float* HWY_RESTRICT x = activations.griffin_x.data() + batch_offset; TwoMatVecAdd( @@ -691,7 +690,6 @@ HWY_NOINLINE void GriffinRecurrent( // Final linear layer. for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) { const size_t batch_offset = batch_idx * kModelDim; - const size_t pos = batch_start + batch_idx; float* HWY_RESTRICT x = activations.griffin_x.data() + batch_offset; float* out_ptr = activations.att_post2.data() + batch_idx * kModelDim; MatVecAdd(