tipe/test/dense_neural_network.c

26 lines
644 B
C
Raw Normal View History

2022-04-01 15:18:48 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
2023-11-10 23:09:48 +01:00
#include "include/test.h"
2023-03-13 13:55:09 +01:00
#include "../src/dense/include/neural_network.h"
#include "../src/dense/include/neuron_io.h"
2023-05-12 16:16:34 +02:00
#include "../src/common/include/colors.h"
2022-04-01 15:18:48 +02:00
int main() {
2023-11-10 23:09:48 +01:00
_TEST_PRESENTATION("Dense: Création")
2022-05-14 16:04:35 +02:00
Network* network = (Network*)malloc(sizeof(Network));
2022-04-01 15:18:48 +02:00
int tab[5] = {30, 25, 20, 15, 10};
2022-05-14 16:04:35 +02:00
network_creation(network, tab, 5);
2023-11-10 23:09:48 +01:00
_TEST_ASSERT(true, "Création");
2022-04-01 15:18:48 +02:00
2022-05-14 16:04:35 +02:00
network_initialisation(network);
2023-11-10 23:09:48 +01:00
_TEST_ASSERT(true, "Initialisation");
2022-04-01 15:18:48 +02:00
2022-05-23 17:27:38 +02:00
deletion_of_network(network);
2023-11-10 23:09:48 +01:00
_TEST_ASSERT(true, "Suppression");
2022-05-14 16:04:35 +02:00
return 0;
2022-04-01 15:18:48 +02:00
}