diff --git a/ethosu/regor/compiler/network_performance.cpp b/ethosu/regor/compiler/network_performance.cpp index 1567a43a7009eebda14f8e01b834b0c04b224ef9..67b5047c846e2ccb6627b1baf9ca895acc5e1624 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; }