diff options
author | patrik.gustavsson <patrik.gustavsson@arm.com> | 2020-12-21 16:56:26 +0000 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2020-12-21 16:56:26 +0000 |
commit | df0a5905177f3a1b836076bc3f9f39b2e86f1794 (patch) | |
tree | b5151d0f12428e47d64b1fb2ce4f2f8c19304a0d /ethosu/vela/debug_database.py | |
parent | bf31d647dc5df47410ee577b12427ddf076d816b (diff) | |
download | ethos-u-vela-df0a5905177f3a1b836076bc3f9f39b2e86f1794.tar.gz |
Revert "MLBEDSW-3645 4D class for op ifm/ofm shapes"
This reverts commit bf31d647dc5df47410ee577b12427ddf076d816b.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I7b6c585b7658f94dbaa916c2b6bfe9fb463b8d37
Diffstat (limited to 'ethosu/vela/debug_database.py')
-rw-r--r-- | ethosu/vela/debug_database.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ethosu/vela/debug_database.py b/ethosu/vela/debug_database.py index 77e13eb0..203503f2 100644 --- a/ethosu/vela/debug_database.py +++ b/ethosu/vela/debug_database.py @@ -23,7 +23,7 @@ import lxml.etree as xml from . import numeric_util from .operation import Operation -from .shape4d import Shape4D + UntypedDict = Dict[Any, Any] UntypedList = List[Any] @@ -79,18 +79,9 @@ class DebugDatabase: src_uid = cls._sourceUID[parent] uid = len(cls._optimisedUID) cls._optimisedUID[op] = (uid, src_uid) - ofm_shape = op.ofm_shapes[0] if op.ofm_shapes else Shape4D(op.outputs[0].shape) + 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.width, - ofm_shape.height, - ofm_shape.depth, - ] + [uid, src_uid, op.type, op.kernel.width, op.kernel.height, ofm_shape[-2], ofm_shape[-3], ofm_shape[-1]] ) @classmethod |