Fix size of network->kernel

This commit is contained in:
julienChemillier 2023-01-15 17:51:02 +01:00
parent 0e878a421e
commit 3c611d5681

View File

@ -18,7 +18,7 @@ Network* create_network(int max_size, float learning_rate, int dropout, int init
network->size = 1;
network->input = (float****)malloc(sizeof(float***)*max_size);
network->input_z = (float****)malloc(sizeof(float***)*max_size);
network->kernel = (Kernel**)malloc(sizeof(Kernel*)*max_size);
network->kernel = (Kernel**)malloc(sizeof(Kernel*)*(max_size-1));
network->width = (int*)malloc(sizeof(int*)*max_size);
network->depth = (int*)malloc(sizeof(int*)*max_size);
for (int i=0; i < max_size; i++) {