learnig: add ending and fix leak memory

This commit is contained in:
2025-05-12 15:16:19 +02:00
parent d2a84f4a82
commit 52e6353469
8 changed files with 229 additions and 28 deletions
+1 -1
View File
@@ -635,7 +635,7 @@ void print_weight_in_neurons_##type(neurons_##type *nn, char *msg){\
if(tmp->weight_in){\
sprintf(vmsg,"%s layer %ld",msg,i++);\
print_tensor_msg_##type(tmp->weight_in, vmsg);\
}else{printf("weight_in %d NULL\n",i);}\
}else{printf("weight_in %ld NULL\n",i);}\
tmp = tmp->next_layer;\
}\
}\