diff options
author | Dominic Symes <dominic.symes@arm.com> | 2023-07-05 17:30:47 +0100 |
---|---|---|
committer | Dominic Symes <dominic.symes@arm.com> | 2023-07-06 13:20:59 +0000 |
commit | abb883a0b7ab8e7efe2419ea803e3bae38873cf4 (patch) | |
tree | 5fe936b1b4b1919477df06bab21b396ce870cc64 /chapters | |
parent | 757b0af964cdd37355952aac9d5375ba0ce901e1 (diff) | |
download | specification-abb883a0b7ab8e7efe2419ea803e3bae38873cf4.tar.gz |
AVG_POOL2D conformance: fix kernel size names
Change-Id: I188694080b74ec81c6dea675430e29db11ee6079
Signed-off-by: Dominic Symes <dominic.symes@arm.com>
Diffstat (limited to 'chapters')
-rw-r--r-- | chapters/appendix_a.adoc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chapters/appendix_a.adoc b/chapters/appendix_a.adoc index bd4db44..d4235e8 100644 --- a/chapters/appendix_a.adoc +++ b/chapters/appendix_a.adoc @@ -276,11 +276,13 @@ For compliant implementation, the test must pass whenever the attributes satisfy [source,c++] ---- -KS = KY*KX; +KX = kernel_x; +KY = kernel_y; +KS = KX*KY; for (0 <= n < N, 0 <= iy < IH, 0 <= ix < IW, 0 <= c < C) { - input [ n, iy, ix, c] = tosa_mi_data(S, KS, 0, ((iy % KH)*KW+(ix % KW))*C+c, ((n*IH+iy)*IW+ix)*C+c); + input [ n, iy, ix, c] = tosa_mi_data(S, KS, 0, ((iy % KY)*KX+(ix % KX))*C+c, ((n*IH+iy)*IW+ix)*C+c); } -for (0 <= ky < KH, 0 <= kx < KW, 0 <= c < C, 0 <= m < M) { +for (0 <= ky < KY, 0 <= kx < KX, 0 <= c < C, 0 <= m < M) { weight[ky, kx] = 1/KS; } ---- |