tipe/src/cnn/include/creation.h

47 lines
1.4 KiB
C
Raw Normal View History

2022-07-05 08:13:25 +02:00
#include "struct.h"
2022-09-23 14:25:56 +02:00
#include "initialisation.h"
2022-07-05 08:13:25 +02:00
#ifndef DEF_CREATION_H
#define DEF_CREATION_H
/*
* Créé un réseau qui peut contenir max_size couche (dont celle d'input et d'output)
*/
Network* create_network(int max_size, int dropout, int initialisation, int input_dim, int input_depth);
/*
* Renvoie un réseau suivant l'architecture LeNet5
*/
Network* create_network_lenet5(int dropout, int activation, int initialisation);
/*
* Créé et alloue de la mémoire à une couche de type input cube
*/
2022-09-16 14:53:35 +02:00
void create_a_cube_input_layer(Network* network, int pos, int depth, int dim); // CHECKED
2022-07-05 08:13:25 +02:00
/*
* Créé et alloue de la mémoire à une couche de type ligne
*/
void create_a_line_input_layer(Network* network, int pos, int dim);
/*
* Ajoute au réseau une couche d'average pooling valide de dimension dim*dim
*/
2022-09-30 15:50:29 +02:00
void add_2d_average_pooling(Network* network, int dim_input, int dim_ouput);
2022-07-05 08:13:25 +02:00
/*
2022-09-19 18:39:49 +02:00
* Ajoute au réseau une couche de convolution dim*dim et initialise les kernels
2022-07-05 08:13:25 +02:00
*/
2022-09-30 15:50:29 +02:00
void add_convolution(Network* network, int depth_input, int dim_input, int depth_output, int dim_output, int activation);
2022-07-05 08:13:25 +02:00
/*
2022-09-19 18:39:49 +02:00
* Ajoute au réseau une couche dense et initialise les poids et les biais
2022-07-05 08:13:25 +02:00
*/
void add_dense(Network* network, int input_units, int output_units, int activation);
2022-09-19 18:39:49 +02:00
/*
* Ajoute au réseau une couche dense qui aplatit
*/
void add_dense_linearisation(Network* network, int input_units, int output_units, int activation);
2022-07-05 08:13:25 +02:00
#endif