aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/debug_database.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/debug_database.py')
-rw-r--r--ethosu/vela/debug_database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/debug_database.py b/ethosu/vela/debug_database.py
index 4f0a50ae..203503f2 100644
--- a/ethosu/vela/debug_database.py
+++ b/ethosu/vela/debug_database.py
@@ -79,7 +79,7 @@ class DebugDatabase:
src_uid = cls._sourceUID[parent]
uid = len(cls._optimisedUID)
cls._optimisedUID[op] = (uid, src_uid)
- ofm_shape = numeric_util.full_shape(3, op.outputs[0].shape, 1)
+ ofm_shape = op.ofm_shapes[0] if op.ofm_shapes else numeric_util.full_shape(3, op.outputs[0].shape, 1)
cls._optimisedTable.append(
[uid, src_uid, op.type, op.kernel.width, op.kernel.height, ofm_shape[-2], ofm_shape[-3], ofm_shape[-1]]
)