From abb883a0b7ab8e7efe2419ea803e3bae38873cf4 Mon Sep 17 00:00:00 2001 From: Dominic Symes Date: Wed, 5 Jul 2023 17:30:47 +0100 Subject: AVG_POOL2D conformance: fix kernel size names Change-Id: I188694080b74ec81c6dea675430e29db11ee6079 Signed-off-by: Dominic Symes --- chapters/appendix_a.adoc | 8 +++++--- 1 file 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; } ---- -- cgit v1.2.1