mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 23:26:25 +01:00
Fix unauthorized read
This commit is contained in:
parent
b6aafbf0fd
commit
48dcded57a
@ -170,9 +170,10 @@ Network* read_network(char* filename) {
|
||||
// Lecture de chaque couche
|
||||
network->kernel = (Kernel**)malloc(sizeof(Kernel*)*size);
|
||||
|
||||
for (int i=0; i < (int)size; i++) {
|
||||
for (int i=0; i < (int)size-1; i++) {
|
||||
network->kernel[i] = read_kernel(type_couche[i], network->width[i+1], ptr);
|
||||
}
|
||||
network->kernel[(int)size-1] = read_kernel(type_couche[(int)size-1], -1, ptr);
|
||||
|
||||
network->input = (float****)malloc(sizeof(float***)*size);
|
||||
for (int i=0; i < (int)size; i++) { // input[size][couche->depth][couche->dim][couche->dim]
|
||||
|
Loading…
Reference in New Issue
Block a user