From 9efe1a95658bbb405b06b3a1d9e5ef22b8388ea5 Mon Sep 17 00:00:00 2001 From: Dominic Symes Date: Thu, 8 Jun 2023 13:03:10 +0100 Subject: Fix main inference conformance test data Correct the kernel size for the DEPTHWISE_CONV2D test data generator in Appendix A. Change-Id: I4fea6192bcd8a70d82d12543730cdc684fb839e5 Signed-off-by: Dominic Symes --- chapters/appendix_a.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/appendix_a.adoc b/chapters/appendix_a.adoc index f439871..bd4db44 100644 --- a/chapters/appendix_a.adoc +++ b/chapters/appendix_a.adoc @@ -172,12 +172,12 @@ For compliant implementation, the test must pass whenever the attributes satisfy [source,c++] ---- -KS = KW*KH*C; +KS = KW*KH; 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 % KH)*KW+(ix % KW), ((n*IH+iy)*IW+ix)*C+c); } for (0 <= ky < KH, 0 <= kx < KW, 0 <= c < C, 0 <= m < M) { - weight[ky, kx, c, m] = tosa_mi_data(S, KS, 1, (ky*KW+kx)*C+c, ((ky*KW+kx)*C+c)*M+m); + weight[ky, kx, c, m] = tosa_mi_data(S, KS, 1, (ky*KW+kx), ((ky*KW+kx)*C+c)*M+m); } ---- -- cgit v1.2.1