MLBEDSW-6613: Implement tile padding
Implement new padding mode which pads two edges of the IFM with the
current values of those edges
Signed-off-by: Rickard Bolin <rickard.bolin@arm.com>
Change-Id: I8523e0cabdac80b48710703859003e33050cc150
diff --git a/ethosu/vela/cascade_builder.py b/ethosu/vela/cascade_builder.py
index 94c856f..3c10537 100644
--- a/ethosu/vela/cascade_builder.py
+++ b/ethosu/vela/cascade_builder.py
@@ -21,6 +21,7 @@
from .numeric_util import round_up
from .operation import NpuBlockType
from .operation import Op
+from .operation import Padding
from .shape4d import Shape4D
non_cascadable_blocks = (
@@ -99,6 +100,7 @@
and sched_op.parent_op.read_offsets[1] is None
and self.element_wise_cascading_conformity(sched_op)
and not sched_op.parent_op.type.is_resize_op()
+ and sched_op.parent_op.attrs.get("padding", None) != Padding.TILE
)
def _is_mergeable(self, sched_op) -> bool: