tipe/test/cnn_neuron_io.c

28 lines
638 B
C
Raw Normal View History

2022-09-23 14:25:56 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include "../src/cnn/neuron_io.c"
#include "../src/cnn/creation.c"
int main() {
printf("Création du réseau\n");
Network* network = create_network_lenet5(0, 3, 2);
printf("OK\n");
printf("Écriture du réseau\n");
write_network(".test-cache/cnn_neuron_io.bin", network);
printf("OK\n");
/*
printf("Vérification de l'accès en lecture\n");
Network* network2 = read_network(".test-cache/neuron_io.bin");
printf("OK\n");
deletion_of_network(network);
deletion_of_network(network2);
*/
return 0;
}