Skip to content

MLBEDSW-10297: ConvertHardSwishToLUT: Make sure shift is in range

Johan Gunnarsson requested to merge MLBEDSW-10297 into main

QuantizedScale can give us shifts in the range of [0, 63] but RoundingDivideByPOT can only handle shifts in the range of [0, 31], so try to move it into the smaller range before calling that function.

Signed-off-by: Johan Gunnarsson johan.gunnarsson@arm.com Change-Id: I24e8b67a28550bb88c0a746add06484af1c240d1

Merge request reports

Loading