tipe/src/cnn/include/free.h

48 lines
1.2 KiB
C
Raw Normal View History

2022-07-05 08:13:25 +02:00
#include "struct.h"
#ifndef DEF_FREE_H
#define DEF_FREE_H
/*
* Libère la mémoire allouée à une couche de type input cube
2022-10-02 16:16:14 +02:00
* Donc free networkt->input[pos][i][j]
2022-07-05 08:13:25 +02:00
*/
void free_a_cube_input_layer(Network* network, int pos, int depth, int dim);
/*
* Libère la mémoire allouée à une couche de type input line
2022-10-02 16:16:14 +02:00
* Donc free networkt->input[pos][0][0]
2022-07-05 08:13:25 +02:00
*/
void free_a_line_input_layer(Network* network, int pos);
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire alloué dans 'add_2d_average_pooling' (creation.c)
2022-07-05 08:13:25 +02:00
*/
2022-10-02 16:16:14 +02:00
void free_2d_average_pooling(Network* network, int pos);
2022-07-05 08:13:25 +02:00
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire dans 'add_convolution' (creation.c)
2022-07-05 08:13:25 +02:00
*/
2022-10-02 16:16:14 +02:00
void free_convolution(Network* network, int pos);
2022-07-05 08:13:25 +02:00
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire alloué dans 'add_dense' (creation.c)
2022-07-05 08:13:25 +02:00
*/
2022-10-02 16:16:14 +02:00
void free_dense(Network* network, int pos);
2022-07-05 08:13:25 +02:00
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire alloué dans 'add_dense_linearisation' (creation.c)
2022-07-05 08:13:25 +02:00
*/
2022-10-02 16:16:14 +02:00
void free_dense_linearisation(Network* network, int pos);
2022-07-05 08:13:25 +02:00
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire alloué dans 'create_network' (creation.c)
2022-07-05 08:13:25 +02:00
*/
void free_network_creation(Network* network);
/*
2022-10-02 16:16:14 +02:00
* Libère l'espace mémoire alloué dans 'create_network_lenet5' (creation.c)
2022-07-05 08:13:25 +02:00
*/
void free_network_lenet5(Network* network);
#endif