aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/supported_operators.py
diff options
context:
space:
mode:
authorDwight Lidman <dwight.lidman@arm.com>2020-05-06 14:09:17 +0200
committerTim Hall <tim.hall@arm.com>2020-06-18 17:53:52 +0100
commit0538a77dfe65b66efedc4e4b92d851a5aeb46ea4 (patch)
tree73afa3d08b717f33533de0eb6c0c5ebe6754bfe7 /ethosu/vela/supported_operators.py
parent10349e70e994130d9e1ac8b72f32575025b2b453 (diff)
downloadethos-u-vela-0538a77dfe65b66efedc4e4b92d851a5aeb46ea4.tar.gz
MLBEDSW-1970: Add stride 3 support
This patch adds support for strides of size 3. It removes some obsolete code for a corner case that no longer exists. It also changes the setting of the bitfield in NPU_SET_KERNEL_STRIDE so that it matches the specification. Change-Id: I7dabcf72b7826ca0b3c98e9d23209027204079a8 Signed-off-by: Dwight Lidman <dwight.lidman@arm.com>
Diffstat (limited to 'ethosu/vela/supported_operators.py')
-rw-r--r--ethosu/vela/supported_operators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py
index fb3061f7..1e11d788 100644
--- a/ethosu/vela/supported_operators.py
+++ b/ethosu/vela/supported_operators.py
@@ -142,7 +142,7 @@ class SupportedOperators:
def check_convolution_restrictions(self, op):
# check stride
- if op.attrs["stride_w"] > 2 or op.attrs["stride_h"] > 2:
+ if op.attrs["stride_w"] > 3 or op.attrs["stride_h"] > 3:
return False
# check dilation
@@ -182,7 +182,7 @@ class SupportedOperators:
def check_pooling_restrictions(self, op):
# check stride
- if op.attrs["stride_w"] > 2 or op.attrs["stride_h"] > 2:
+ if op.attrs["stride_w"] > 3 or op.attrs["stride_h"] > 3:
return False
# check data type