aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/AVG_POOL2D.tosac
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2024-02-08 10:29:43 +0000
committerKevin Petit <kevin.petit@arm.com>2024-02-08 10:29:43 +0000
commit599de076047aae846fd28cc52a777e4b6e534aaf (patch)
treeb8eab10e9cab319d9023b141480e2cd82486c0af /pseudocode/operators/AVG_POOL2D.tosac
parentc65cd9ccff6000be01ee0742319009f0061879ce (diff)
downloadspecification-599de076047aae846fd28cc52a777e4b6e534aaf.tar.gz
pseudocode: use function call syntax to call templated functions
Change-Id: I24409a38aaf4818a9ab0abc0cad5c7d052e01bd1 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Diffstat (limited to 'pseudocode/operators/AVG_POOL2D.tosac')
-rw-r--r--pseudocode/operators/AVG_POOL2D.tosac2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudocode/operators/AVG_POOL2D.tosac b/pseudocode/operators/AVG_POOL2D.tosac
index f452d12..6df313b 100644
--- a/pseudocode/operators/AVG_POOL2D.tosac
+++ b/pseudocode/operators/AVG_POOL2D.tosac
@@ -43,7 +43,7 @@ for_each(0 <= n < N, 0 <= oy < OH, 0 <= ox < OW, 0 <= c < C ) {
scale_t scale = reciprocal_scale(count);
acc = apply_scale_32(acc, scale.multiplier, scale.shift, false);
acc = apply_add_s<acc_t>(acc, sign_extend<acc_t>(output_zp));
- acc = apply_clip_s<acc_t>(acc, minimum_s<in_out_t>, maximum_s<in_out_t>);
+ acc = apply_clip_s<acc_t>(acc, minimum_s<in_out_t>(), maximum_s<in_out_t>());
output_val = static_cast<in_out_t>(acc);
}
tensor_write<in_out_t>(output, [N,OH,OW,C], [n,oy,ox,c], output_val);