aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/operation_util.py
diff options
context:
space:
mode:
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 ef4949f..44a80b2 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(