From 716d8a28f3c9a0c56eb169a1235fe32dc0eb1699 Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Mon, 28 Apr 2025 11:10:00 +0900 Subject: [PATCH] [luci-interpreter] Fix delete for array This will fix delete to use array, as this fails in gcc-13, U24.04. ONE-DCO-1.0-Signed-off-by: SaeHie Park --- compiler/luci-interpreter/src/kernels/GRU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/luci-interpreter/src/kernels/GRU.cpp b/compiler/luci-interpreter/src/kernels/GRU.cpp index 2419e0bb779..97db3037538 100644 --- a/compiler/luci-interpreter/src/kernels/GRU.cpp +++ b/compiler/luci-interpreter/src/kernels/GRU.cpp @@ -74,8 +74,8 @@ void GRU::evalFloat() const reinterpret_cast(output_hidden_data), getTensorShape(input()), getTensorShape(output()), getTensorShape(hidden_input()), getTensorShape(hidden_hidden())); - delete output_hidden_data; - delete output_input_data; + delete[] output_hidden_data; + delete[] output_input_data; } } // namespace kernels