Skip to content

Commit

Permalink
Fix ne16 relu flag in the layer template
Browse files Browse the repository at this point in the history
  • Loading branch information
lukamac committed Feb 1, 2024
1 parent fd5bdf9 commit 5573413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void ${func_name}(void *args) {
&ne16_tasks[i],
(ne16_quant_t) {
.shift_amount = ${out_shift},
.function = quantFunctionRelu, // todo: un-hardcode it
.function = ${"quantFunctionIdentity" if node.min < 0 else "quantFunctionRelu"},
.flag_rounding = ne16TaskFlagFalse
}, (ne16_norm_t) {
.mode = ${"normMode32Bit" if act_dim_bit == 32 else "normMode8Bit" if act_dim_bit == 8 else ""},
Expand Down

0 comments on commit 5573413

Please sign in to comment.