From 1e84818d36008745c790dd516c90471384d92a36 Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Tue, 10 Dec 2024 15:25:19 +0100 Subject: [PATCH] MLBEDSW-10128 Allow rescale fusing same tensor twice for ew It is now possible to rescale fuse the same input tensor twice to an elementwise operation. Change-Id: I7a1fbb57f10ad7fad894a8959d44f9ac272e83da Signed-off-by: Fredrik Svedberg --- ethosu/regor/compiler/graphir_optimiser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethosu/regor/compiler/graphir_optimiser.cpp b/ethosu/regor/compiler/graphir_optimiser.cpp index 18b6c873..bcaa57f7 100644 --- a/ethosu/regor/compiler/graphir_optimiser.cpp +++ b/ethosu/regor/compiler/graphir_optimiser.cpp @@ -902,9 +902,8 @@ Operation *GraphIrOptimiser::FuseRescale(Graph *const graph, Operation *const op if ( !sameType ) break; } consumer->CopyInput(ifm.first, *ifmConn); - ifm.second.quantization = std::move(ifmQuant); + ifm.second.quantization = ifmQuant; returnOp = consumer.get(); - break; } } } -- GitLab