Skip to content

Handle in[1].q > in[0].q in min/max operation

Sam Eadie requested to merge sameadie/sadl:minmax_neg_bitshift into master

Currently in sadl::layers::Minimum and sadl::layers::Maximum the second input (in[1]) is left shifted by const int shift = -(in[1]->quantizer - in[0]->quantizer); . When in[1]->quantizer > in[0]->quantizer a bitshift by a negative integer is performed resulting in incorrect output.

Merge request reports

Loading