diff options
author | Johan Alfven <johan.alfven@arm.com> | 2023-06-12 10:56:42 +0200 |
---|---|---|
committer | Johan Alfven <johan.alfven@arm.com> | 2023-06-13 13:18:33 +0200 |
commit | 0b4ac76978b93ced8cc175b9ce6c26d36b10a9ab (patch) | |
tree | e4f5936526c5718b7b3a2aed1a2f51d2699e1a10 /ethosu/vela/scheduler.py | |
parent | 6c339854e3cb63c99f650633376cbe400dd9b23d (diff) | |
download | ethos-u-vela-0b4ac76978b93ced8cc175b9ce6c26d36b10a9ab.tar.gz |
MLBEDS-7714: Fix assert for cascaded Resize op
- Cascading was recently enabled for Resize ops. A Resize op is
transformed into several ops. In this case the last op is a
DepthwiseConv2DBias using NEAREST resampling mode. This resampling/
upscaling is not taken into account when calculating the ifm box
size, causing the coordinates to get out of bounds.
- When generating the high level command stream there is a check to
see if an op is a resize op. If this is the case an upscaling factor
is calculated. The fix is to change this check to instead see if the
operator is using NEAREST resampling mode. If that is true, the
scaling factor should be used.
Change-Id: I5308a383cc3310c53004ccfe2d6fabf256478a26
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Diffstat (limited to 'ethosu/vela/scheduler.py')
0 files changed, 0 insertions, 0 deletions