From 2349d429d926e258e9a61d34c7fd97660ab9fb98 Mon Sep 17 00:00:00 2001 From: Patrik Gustavsson Date: Tue, 1 Dec 2020 16:02:29 +0100 Subject: MLBEDSW-3654 Add/use op ifm/ofm shapes Add ifm/ofm shapes to op Changed to rely on these shapes Signed-off-by: Patrik Gustavsson Change-Id: I571535a1dcadc2bdb04a3c727a8e1c49703b174d --- ethosu/vela/insert_dma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu/vela/insert_dma.py') diff --git a/ethosu/vela/insert_dma.py b/ethosu/vela/insert_dma.py index fc1e7986..3797f43e 100644 --- a/ethosu/vela/insert_dma.py +++ b/ethosu/vela/insert_dma.py @@ -72,7 +72,7 @@ def insert_dma_cmd(op, arch, nng): tens.purpose == TensorPurpose.FeatureMap and op.type.is_binary_elementwise_op() and tens.shape != [] - and tens.shape != op.outputs[0].shape + and op.ifm_shapes[0] != op.ofm_shapes[0] and tens.storage_size() > max_ifm_shram_avail ): only_vector_product_consumers = True -- cgit v1.2.1