diff options
author | Charles Xu <charles.xu@arm.com> | 2020-05-27 10:48:59 +0200 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | 86841e7dfb2df70c7959f0fccdd2fe1b878a98e2 (patch) | |
tree | a55e43836407c57fdd1e5db07c07c2ce657bde21 /ethosu/vela | |
parent | 7db78969dc8ead72f3ded81b6d2a6a7ed798ea62 (diff) | |
download | ethos-u-vela-86841e7dfb2df70c7959f0fccdd2fe1b878a98e2.tar.gz |
MLBEDSW-2339: No DMA needed for elementwise scalar in case of offchip
Signed-off-by: Charles Xu <charles.xu@arm.com>
Change-Id: I7b18af503ac6482cf8dc3e9f3e2e93e6cba6426f
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/insert_dma.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/insert_dma.py b/ethosu/vela/insert_dma.py index b1b89856..eef42bf6 100644 --- a/ethosu/vela/insert_dma.py +++ b/ethosu/vela/insert_dma.py @@ -31,7 +31,8 @@ def insert_dma_cmd(op, arch): if tens.mem_area in (MemArea.Dram, MemArea.OffChipFlash) and tens.mem_area != arch.fast_storage_mem_area: if (tens.purpose == TensorPurpose.Weights or (tens.purpose == TensorPurpose.FeatureMap and - op.type in binary_elementwise_op)): + op.type in binary_elementwise_op and + tens.shape != [])): only_vector_product_consumers = True for oper in tens.consumers(): if oper is None or oper.attrs.get("npu_block_type") != NpuBlockType.VectorProduct: |