diff options
author | Johan Alfvén <johan.alfven@arm.com> | 2022-10-17 12:29:12 +0200 |
---|---|---|
committer | Johan Alfvén <johan.alfven@arm.com> | 2022-10-18 08:42:36 +0200 |
commit | a64616c4d7a33c5b2b4e5fb38c57217dc65bc2ea (patch) | |
tree | 6b591bbbe0bb0b1527c0d1119fe9d5adde72b6f9 /ethosu/vela/tflite_supported_operators.py | |
parent | b81e1bb92be8ea5b29625cf2f361e9160286b16a (diff) | |
download | ethos-u-vela-a64616c4d7a33c5b2b4e5fb38c57217dc65bc2ea.tar.gz |
MLBEDSW-6794: ResizeNearestNeighbor with HPC
- Removed half pixel centers constraint for resize nearest neightbor.
- Supported scale 2x, 4x and 8x.
- Removed test_constraint_resize_half_pixel_centers
- Regenerated SUPPORTED_OPS.md
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Change-Id: Ic3e02e9c2b2034d537c9a9841b8fb4ee433c96dc
Diffstat (limited to 'ethosu/vela/tflite_supported_operators.py')
-rw-r--r-- | ethosu/vela/tflite_supported_operators.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ethosu/vela/tflite_supported_operators.py b/ethosu/vela/tflite_supported_operators.py index 3d04def3..23bbac24 100644 --- a/ethosu/vela/tflite_supported_operators.py +++ b/ethosu/vela/tflite_supported_operators.py @@ -264,7 +264,6 @@ class TFLiteSupportedOperators: self.specific_constraints[op_type].append(TFLiteSupportedOperators.constraint_resize) self.specific_constraints[op_type].append(TFLiteSupportedOperators.constraint_resize_size) self.specific_constraints[op_type].append(TFLiteSupportedOperators.constraint_resize_attrs) - self.specific_constraints[op_type].append(TFLiteSupportedOperators.constraint_resize_half_pixel_centers) # Resize Bilinear specific checks: self.specific_constraints[Op.ResizeBilinear].append( @@ -682,15 +681,6 @@ class TFLiteSupportedOperators: return valid, "Op has both align_corners and half_pixel_centers set to True." @staticmethod - def constraint_resize_half_pixel_centers(op): - """Half_pixel_centers are only supported for resize bilinear""" - valid = True - half_pixel_centers = op.attrs.get("half_pixel_centers", False) - if half_pixel_centers and op.type != Op.ResizeBilinear: - valid = False - return valid, f"Op type={op.type} and half_pixel_centers={half_pixel_centers}" - - @staticmethod def constraint_resizebi_half_pixel_centers_dims(op): """Half_pixel_centers for resize bilinear requires that OFM W and H is 2x IFM W and H""" half_pixel_centers = op.attrs.get("half_pixel_centers", False) |