Skip to content

Commit

Permalink
Fix slope conversion to pass all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgardnerTT committed Oct 18, 2024
1 parent 26273af commit 32388ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/inc/sfpu/ckernel_sfpu_relu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include "ckernel_defs.h"
#include "ckernel.h"
#include "ckernel_defs.h"
#include "noc_nonblocking_api.h"
#include "ckernel_sfpu_converter.h"

#include "sfpi.h"

Expand All @@ -20,8 +21,7 @@ namespace sfpu
template <bool APPROXIMATION_MODE>
inline void _calculate_lrelu_(const int iterations, uint slope)
{
// SFPU microcode
vFloat s = s2vFloat16b(slope);
vFloat s = Converter::to_float(slope);

#pragma GCC unroll 0
for (int d = 0; d < iterations; d++) {
Expand Down

0 comments on commit 32388ed

Please sign in to comment.