mirror of https://github.com/google/gemma.cpp.git
Remove unused vars.
This commit is contained in:
parent
3d72f17261
commit
429eb78512
|
|
@ -247,7 +247,6 @@ struct CompressTraits<hwy::bfloat16_t> {
|
||||||
using VU32 = hn::VFromD<decltype(du32)>;
|
using VU32 = hn::VFromD<decltype(du32)>;
|
||||||
const VU32 odd = Set(du32, 0xFFFF0000u);
|
const VU32 odd = Set(du32, 0xFFFF0000u);
|
||||||
|
|
||||||
VF32 be0, bo0, be1, bo1;
|
|
||||||
for (size_t i = 0; i < num; /* i += 2 * N */) {
|
for (size_t i = 0; i < num; /* i += 2 * N */) {
|
||||||
const auto interleaved0 = hn::LoadU(dbf16, in + in_ofs + i);
|
const auto interleaved0 = hn::LoadU(dbf16, in + in_ofs + i);
|
||||||
const VF32 ae0 = Load(df32, vec_aligned + i);
|
const VF32 ae0 = Load(df32, vec_aligned + i);
|
||||||
|
|
|
||||||
|
|
@ -585,7 +585,6 @@ HWY_NOINLINE void GriffinRecurrent(
|
||||||
// X / Y linear layers.
|
// X / Y linear layers.
|
||||||
for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) {
|
for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) {
|
||||||
const size_t batch_offset = batch_idx * kModelDim;
|
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 y = activations.griffin_y.data() + batch_offset;
|
||||||
float* HWY_RESTRICT x = activations.griffin_x.data() + batch_offset;
|
float* HWY_RESTRICT x = activations.griffin_x.data() + batch_offset;
|
||||||
TwoMatVecAdd<kAdd, kModelDim, kModelDim>(
|
TwoMatVecAdd<kAdd, kModelDim, kModelDim>(
|
||||||
|
|
@ -691,7 +690,6 @@ HWY_NOINLINE void GriffinRecurrent(
|
||||||
// Final linear layer.
|
// Final linear layer.
|
||||||
for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) {
|
for (size_t batch_idx = 0; batch_idx < num_tokens; ++batch_idx) {
|
||||||
const size_t batch_offset = batch_idx * kModelDim;
|
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* HWY_RESTRICT x = activations.griffin_x.data() + batch_offset;
|
||||||
float* out_ptr = activations.att_post2.data() + batch_idx * kModelDim;
|
float* out_ptr = activations.att_post2.data() + batch_idx * kModelDim;
|
||||||
MatVecAdd<kAdd, kModelDim, kModelDim>(
|
MatVecAdd<kAdd, kModelDim, kModelDim>(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue