aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/pass_packing.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2021-02-04 22:47:46 +0000
committerTim Hall <tim.hall@arm.com>2021-02-05 11:30:49 +0000
commit73e843f76dd71e4ab5e07a7616c2c4806ca6ac25 (patch)
tree73c35c5443e041441ba826cacfc12f21d5b30bac /ethosu/vela/pass_packing.py
parent133ba7e39c9517d43690c55197d71733ad0dc38c (diff)
downloadethos-u-vela-73e843f76dd71e4ab5e07a7616c2c4806ca6ac25.tar.gz
vela: Change Shape4D mutability usage
- Removed requirement for cloning shapes when unique values required by forcing top-level immutability. This alleviates issues with Shapes being unintentionally shared and then mutated as if value-types. - Shape4D fields can no longer be assigned without replication. Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: Ic0dbfa349eb0215eabefb4f4e2cf99f12d83699c
Diffstat (limited to 'ethosu/vela/pass_packing.py')
-rw-r--r--ethosu/vela/pass_packing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/pass_packing.py b/ethosu/vela/pass_packing.py
index c973b9c3..abd235fd 100644
--- a/ethosu/vela/pass_packing.py
+++ b/ethosu/vela/pass_packing.py
@@ -231,7 +231,7 @@ def pack_into_passes(nng, arch, verbose_packing=False):
ofm_tensor = op.ofm
if ofm_tensor is None:
ofm_tensor = op.outputs[0]
- ofm_shape = op.ofm_shapes[0].clone() if op.run_on_npu else None
+ ofm_shape = op.ofm_shapes[0] if op.run_on_npu else None
build_pass((op,), ofm_tensor, ofm_shape)