diff options
author | Kevin Petit <kevin.petit@arm.com> | 2024-02-14 15:53:31 +0000 |
---|---|---|
committer | Kevin Petit <kevin.petit@arm.com> | 2024-02-15 10:14:44 +0000 |
commit | 43dafec5003e425c8f4c576e21e7d0706e8fb5a3 (patch) | |
tree | 14b2dd10ace028a3a8ce1ce754dae08989614dbd | |
parent | 667e62897a809ab3af832e7778139d3869532277 (diff) | |
download | specification-43dafec5003e425c8f4c576e21e7d0706e8fb5a3.tar.gz |
pseudocode: replace use of nonexistent is_float with is_floating_point in AVG_POOL2D
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Change-Id: I5e0237abed504fdf26405a3d814714f22a0cf9b5
-rw-r--r-- | pseudocode/operators/AVG_POOL2D.tosac | 2 |
1 files changed, 1 insertions, 1 deletions
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_t>(acc, value); } } - if (is_float(in_out_t)) { + if (is_floating_point<in_out_t>()) { output_val = acc / static_cast<in_out_t>(count); } else { scale_t scale = reciprocal_scale(count); |