aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyaan Masood <Ayaan.Masood@arm.com>2022-02-22 15:56:35 +0000
committerDwight Lidman <dwight.lidman@arm.com>2022-02-22 16:17:35 +0000
commitd5cbef3366c185de0c322d7fbdd75d50f0263778 (patch)
treed55cb713ed523ff9543ac6ccbdb711b0fe87f8f3
parentb801dda26bbcff8ec4f7967d60f38239fd16912b (diff)
downloadethos-u-vela-d5cbef3366c185de0c322d7fbdd75d50f0263778.tar.gz
MLBEDSW-5873 Fixed divide by zero warning in memory transfer efficiency
*Corrected calculation where use of the _estimate_memory_transfer_efficiency function when calculating the scaled bandwidth for LUT transfers resulted in a divide by zero error. Change-Id: I2356e924d9ca2f315ca1988f465f58b13a8fa4c9 Signed-off-by: Ayaan Masood <Ayaan.Masood@arm.com>
-rw-r--r--ethosu/vela/npu_performance.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/ethosu/vela/npu_performance.py b/ethosu/vela/npu_performance.py
index 08967f4..0b8e0a6 100644
--- a/ethosu/vela/npu_performance.py
+++ b/ethosu/vela/npu_performance.py
@@ -629,18 +629,7 @@ def estimate_full_op_performance(
bws[src_tensor.mem_area][lut_tensor.purpose][BandwidthDirection.Read] += bw
# LUT read from SHRAM TODO remove?
- scaled_bws[lut_tensor.mem_area][lut_tensor.purpose][
- BandwidthDirection.Read
- ] += _estimate_memory_transfer_efficiency(
- arch,
- True,
- lut_tensor.mem_area,
- lut_tensor.format,
- lut_tensor.element_size(),
- query.config.ifm_block,
- Shape4D(lut_tensor.shape),
- bw,
- )
+ scaled_bws[lut_tensor.mem_area][lut_tensor.purpose][BandwidthDirection.Read] += bw
if cost.npu_weights_tensor and cost.buffered_weight_tensor:
# DMA Weight Transfer