MLBEDSW-4157: Add RESIZE_NEAREST_NEIGHBOR support
- Changed ResizeBilinear to support ResizeNearestNeighbor as well for
1x1 IFM, IFM equal OFM, and non-align corners
- Added support for ResizeNearestNeighbor with align corners by
converting to a DepthwiseConv
- Updated supported operator unit tests
- Added is_resize() helper function and some associated refactoring
Signed-off-by: Tim Hall <tim.hall@arm.com>
Change-Id: Id5bdf2a25e8aa6a4f28b7236250abf768141ce37
diff --git a/ethosu/vela/api.py b/ethosu/vela/api.py
index 399fd46..26ca291 100644
--- a/ethosu/vela/api.py
+++ b/ethosu/vela/api.py
@@ -374,7 +374,7 @@
def __init__(self, pooling_op_type: NpuPoolingOp):
super().__init__(NpuOperationType.Pooling)
self.sub_op_type: NpuPoolingOp = pooling_op_type
- # Set to a float value for ResizeBilinear operations (affects scaling), else to None
+ # Set to a float value for ResizeBilinear/NearestNeighbor operations (affects scaling), else to None
self.rescale: Optional[float] = None