Skip to content

Commit

Permalink
benchdnn: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraujom authored and vpirogov committed Sep 9, 2022
1 parent b4e0032 commit 2500b0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/benchdnn/pool/ref_pool.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2021 Intel Corporation
* Copyright 2019-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,7 +36,6 @@ void compute_ref_fwd(const prb_t *prb, const dnn_mem_t &src,
float max_value = lowest_dt(prb->cfg[DST].dt);
float avg_value = 0.;
int ws_off = INT_MAX;
int num_summands = 0;

for (int64_t kd = 0; kd < KD; ++kd) {
const int64_t id = od * SD - PD + kd * (DD + 1);
Expand All @@ -54,7 +53,6 @@ void compute_ref_fwd(const prb_t *prb, const dnn_mem_t &src,
ws_off = ker_off_f(prb, kd, kh, kw);
}
avg_value += s;
num_summands++;
}
}
}
Expand Down

0 comments on commit 2500b0f

Please sign in to comment.