tipe/src/cnn/include/creation.h

52 lines
1.5 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)
*/
2022-11-15 18:15:18 +01:00
Network* create_network(int max_size, float learning_rate, int dropout, int initialisation, int input_dim, int input_depth);
2022-07-05 08:13:25 +02:00
/*
* Renvoie un réseau suivant l'architecture LeNet5
*/
2022-11-15 18:15:18 +01:00
Network* create_network_lenet5(float learning_rate, int dropout, int activation, int initialisation, int input_dim, int input_depth);
2022-07-05 08:13:25 +02:00
/*
* Créé et alloue de la mémoire à une couche de type input cube
*/
2022-10-31 20:08:42 +01:00
void create_a_cube_input_layer(Network* network, int pos, int depth, int dim);
/*
* Créé et alloue de la mémoire à une couche de type input_z cube
*/
void create_a_cube_input_z_layer(Network* network, int pos, int depth, int dim);
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-10-31 20:08:42 +01:00
void add_2d_average_pooling(Network* network, int dim_output);
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
*/
void add_convolution(Network* network, 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 output_units, 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 qui aplatit
*/
void add_dense_linearisation(Network* network, int output_units, int activation);
2022-09-19 18:39:49 +02:00
2022-07-05 08:13:25 +02:00
#endif