Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Remove redundant variables in Average Pooling implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Dukhan committed Dec 27, 2018
1 parent 5f66e71 commit 3cb5c5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/average-pooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,9 @@ enum qnnp_status qnnp_create_average_pooling2d_nhwc_q8(

size_t nrows = pooling_height * pooling_width;
if (channels >= qnnp_params.q8avgpool.kr) {
const uint32_t mr = qnnp_params.q8avgpool.mr;
if (nrows <= mr) {
nrows = mr;
} else {
const uint32_t qr = qnnp_params.q8avgpool.qr;
nrows = round_up(nrows - mr, qr) + mr;
}
}
Expand Down

0 comments on commit 3cb5c5c

Please sign in to comment.