aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/npu_performance.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/npu_performance.py')
-rw-r--r--ethosu/vela/npu_performance.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethosu/vela/npu_performance.py b/ethosu/vela/npu_performance.py
index 820c7d6..e315f1f 100644
--- a/ethosu/vela/npu_performance.py
+++ b/ethosu/vela/npu_performance.py
@@ -509,8 +509,7 @@ def performance_metrics_for_pass(arch, ps, block_config=None, rewrite_list=None,
)
else:
weight_tensor_shape = [
- primary_op.attrs["ksize"][1],
- primary_op.attrs["ksize"][2],
+ *primary_op.get_kernel_size(),
1,
ifm_tensor_shape.depth,
]