Skip to content

Commit

Permalink
[NE16] Fix incorrect RELU when quantization is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoConti authored Nov 14, 2021
1 parent b9532d1 commit 320907f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gvsoc/pulp/models/pulp/ne16/src/ne16_streamout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void Ne16::streamout_setup() {
xt::view(this->accum, xt::all()) = xt::clip(this->accum, -128, 127);
}
}
else if(this->use_relu) {
else if(this->use_relu && this->output_quant) {
xt::view(this->accum, xt::all()) = xt::clip(this->accum, 0, 0xffffffff);
}
if(this->accum_traces) {
Expand Down

0 comments on commit 320907f

Please sign in to comment.