From 85f2a5adec563d5b13a8d85bc87c23b02ac5a3a2 Mon Sep 17 00:00:00 2001 From: Qiea <1310371422@qq.com> Date: Sat, 9 Nov 2024 00:39:32 +0800 Subject: [PATCH] Fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决了cnn_run内存溢出的问题 --- PORTING/CNN/cnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PORTING/CNN/cnn.c b/PORTING/CNN/cnn.c index 568b294..fdcd1ad 100644 --- a/PORTING/CNN/cnn.c +++ b/PORTING/CNN/cnn.c @@ -620,12 +620,12 @@ void cnn_run() myfree(SRAMEX, yi); myfree(SRAMEX, CNN_data); myfree(SRAMEX, Full_output1); - myfree(SRAMEX, Matrix_data); } else printf("No\r\n");/*Èç¹ûû·Åµç´òÓ¡¡°No¡±*/ printf("maxvalue is:%f\t",maxvalue); printf("meanvalue is:%f\t",meanvalue); printf("std_devvalue is:%f\r\n",std_devvalue); + myfree(SRAMEX, Matrix_data); isrun = 0; }