diff options
author | Henrik G Olsson <henrik.olsson@arm.com> | 2021-03-19 15:50:28 +0100 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2021-04-16 06:56:08 +0000 |
commit | ad656a820394580d9e1b6d79597905074d599464 (patch) | |
tree | a209af2573e3670ebc1cb9b5585fa70f0b36300d /ethosu/vela/graph_optimiser.py | |
parent | 3645d009628bbb00185132e70d257d2c038716e7 (diff) | |
download | ethos-u-vela-ad656a820394580d9e1b6d79597905074d599464.tar.gz |
MLBEDSW-3550 Only use simple scaling when bitexact with TFLite
For 8 bit arithmetic we cannot guarantee reproducibility in the general
case since precision differs, affecting rounding near half integers.
It should be safe when the ratio between output and input scales has
its 12 LSBs all set to 0, however.
For 16 bit arithmetic it should be sufficient to adjust the input and
output scalings with a factor of 2 to get the same rounding.
Signed-off-by: Henrik G Olsson <henrik.olsson@arm.com>
Change-Id: I809c0042615d16c5488d61f0c7d88e1a1315e6eb
Diffstat (limited to 'ethosu/vela/graph_optimiser.py')
0 files changed, 0 insertions, 0 deletions