Skip to content

MLBEDSW-11171 Fixed bug causing incorrect saturation for cell clipping

Jacob Bohlin requested to merge MLBEDSW-11171 into main

If LSTM cell clip lies outside of int16 range it will now clip to -INT16_MAX, i.e. -32767 instead of INT16_MIN which is -32768. This is to align with the behaviour of the reference kernel.

Also removed unnecessary handling of cell-state zero-point, which is always zero.

Change-Id: I7692af11076fda72f2bd69b6b61eacbbb839c523 Signed-off-by: Jacob Bohlin jacob.bohlin@arm.com

Merge request reports

Loading