Skip to content

Commit

Permalink
Only round to fp16b when not in approx mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjogoTT committed Aug 12, 2024
1 parent ed704e1 commit 0b5fa70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/inc/sfpu/ckernel_sfpu_recip.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ inline void _calculate_reciprocal_(const int iterations)
}
v_endif;

if constexpr (is_fp32_dest_acc_en) {
if constexpr (is_fp32_dest_acc_en || APPROXIMATION_MODE) {
dst_reg[0] = out;
} else {
dst_reg[0] = reinterpret<vFloat>(float_to_fp16b(out, 0));
Expand Down

0 comments on commit 0b5fa70

Please sign in to comment.