From 43dafec5003e425c8f4c576e21e7d0706e8fb5a3 Mon Sep 17 00:00:00 2001 From: Kevin Petit Date: Wed, 14 Feb 2024 15:53:31 +0000 Subject: pseudocode: replace use of nonexistent is_float with is_floating_point in AVG_POOL2D Signed-off-by: Kevin Petit Change-Id: I5e0237abed504fdf26405a3d814714f22a0cf9b5 --- pseudocode/operators/AVG_POOL2D.tosac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pseudocode/operators/AVG_POOL2D.tosac b/pseudocode/operators/AVG_POOL2D.tosac index 6df313b..3c09640 100644 --- a/pseudocode/operators/AVG_POOL2D.tosac +++ b/pseudocode/operators/AVG_POOL2D.tosac @@ -37,7 +37,7 @@ for_each(0 <= n < N, 0 <= oy < OH, 0 <= ox < OW, 0 <= c < C ) { acc = apply_add_s(acc, value); } } - if (is_float(in_out_t)) { + if (is_floating_point()) { output_val = acc / static_cast(count); } else { scale_t scale = reciprocal_scale(count); -- cgit v1.2.1