tipe/src/mnist/include/neuron_io.h

26 lines
755 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>
2022-04-26 11:39:29 +02:00
#include "neuron.h"
2022-04-01 15:41:54 +02:00
#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);
2022-05-21 15:11:36 +02:00
void write_neuron(Neuron* neuron, int weights, FILE *ptr);
2022-05-19 22:26:19 +02:00
void write_network(char* filename, Network* network);
2022-05-21 15:11:36 +02:00
Neuron* read_delta_neuron(uint32_t nb_weights, FILE *ptr);
Neuron** read_delta_neurons(uint32_t nb_neurons, uint32_t nb_weights, FILE *ptr);
Network* read_delta_network(char* filename);
void write_delta_neuron(Neuron* neuron, int weights, FILE *ptr);
2022-05-19 22:26:19 +02:00
void write_delta_network(char* filename, Network* network);
2022-04-01 15:41:54 +02:00
#endif