aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/operation_util.py
diff options
context:
space:
mode:
authorJohan Alfven <johan.alfven@arm.com>2023-05-25 11:18:50 +0200
committerJohan Alfven <johan.alfven@arm.com>2023-09-18 11:17:57 +0200
commit906c9e84d60de86f5b2584ae426bbc8e11932a03 (patch)
tree36ff5d1010105d1fb997252941f08835d51e2eac /ethosu/vela/operation_util.py
parentb4e804bb53aba48985abf3bf8466bc02310f60fc (diff)
downloadethos-u-vela-906c9e84d60de86f5b2584ae426bbc8e11932a03.tar.gz
MLBEDSW-8042: MLCE: Add SQUARED_DIFFERENCE support
- Added SQUARED_DIFFERENCE support - Updated SUPPORTED_OPS.md Change-Id: Id83d9d92129e645390c7979759dfdeff7a14c2ee Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Diffstat (limited to 'ethosu/vela/operation_util.py')
-rw-r--r--ethosu/vela/operation_util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/operation_util.py b/ethosu/vela/operation_util.py
index ef4949fa..44a80b2b 100644
--- a/ethosu/vela/operation_util.py
+++ b/ethosu/vela/operation_util.py
@@ -98,7 +98,8 @@ def create_cast_op(
c = ifm.shape[-1]
- shape = [1, 1, 1, c]
+ # Weigth shape is in format [h, w, c, b]
+ shape = [1, 1, c, 1]
kernel = np.dstack([1] * c)
identity_quant = QuantizationParameters(scale_f32=1.0, zero_point=0)
op.add_input_tensor(