From 177e928972570aecd39a094d41473c57d2c4a138 Mon Sep 17 00:00:00 2001 From: Max Bergfelt Date: Tue, 15 Jul 2025 12:17:57 +0200 Subject: [PATCH] MLBEDSW-10896: Fix reinterpret cast to output Modified reinterpret cast handling when reinterpreting to output so that the preceding operator writes to the correct type. Change-Id: Ie10a4c0de4e80602d7ec3597caeb919c50ddbf61 Signed-off-by: Max Bergfelt --- ethosu/regor/compiler/scheduler_packing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ethosu/regor/compiler/scheduler_packing.cpp b/ethosu/regor/compiler/scheduler_packing.cpp index 8d341976..daae6f9e 100644 --- a/ethosu/regor/compiler/scheduler_packing.cpp +++ b/ethosu/regor/compiler/scheduler_packing.cpp @@ -284,6 +284,7 @@ void SchedulerPacking::HandleReinterpretCast(const Operation *op) if ( _graph->IsOutput(ofmConn->tensor.get()) ) { InitSchedulerTensor(schedTensor.get(), ofmConn->tensor.get()); + schedTensor->dataType = ifmConn->tensor->Type(); schedTensor->srcTensor = ofmConn->tensor; } } -- GitLab