From 1756fef87714247a098b9636e4a8d3644eaa12ee Mon Sep 17 00:00:00 2001 From: Johan Gunnarsson Date: Mon, 5 May 2025 14:41:46 +0200 Subject: [PATCH] MLBEDSW-10657: Align MAC count calculation with Vela Don't include subops that are activations in the performance summary. Signed-off-by: Johan Gunnarsson Change-Id: I9e1e97281c862d3e3ce873aac89f18ff57fea46c --- ethosu/regor/compiler/network_performance.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ethosu/regor/compiler/network_performance.cpp b/ethosu/regor/compiler/network_performance.cpp index 1567a43a..67b5047c 100644 --- a/ethosu/regor/compiler/network_performance.cpp +++ b/ethosu/regor/compiler/network_performance.cpp @@ -210,7 +210,10 @@ PerformanceResult NetworkPerformance::Measure(Schedule *schedule, OptimiserDatab { AddToDatabase(perf, subOp.get(), cost, opTable, perfDebugTable, memories, optDb); } - performance += perf; + if ( !IsActivation(subOp->Type()) ) + { + performance += perf; + } prevOp = subOp.get(); prevCost = cost; } -- GitLab