tipe/src/mnist/neuron_io.h

18 lines
448 B
C
Raw Normal View History

2022-04-01 15:41:54 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include "struct/neuron.h"
#ifndef DEF_NEURON_IO_H
#define DEF_NEURON_IO_H
2022-04-25 14:39:45 +02:00
Neuron* read_neuron(uint32_t nb_weights, FILE *ptr);
Neuron** read_neurons(uint32_t nb_neurons, uint32_t nb_weights, FILE *ptr);
Network* read_network(char* filename);
void ecrire_neuron(Neuron* neuron, int weights, FILE *ptr);
int write_network(char* filename, Network* network);
2022-04-01 15:41:54 +02:00
#endif