aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_supported_operators.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tflite_supported_operators.py')
-rw-r--r--ethosu/vela/tflite_supported_operators.py10
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)