2022-04-01 15:41:54 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#ifndef DEF_MNIST_H
|
|
|
|
#define DEF_MNIST_H
|
|
|
|
|
|
|
|
uint32_t swap_endian(uint32_t val);
|
2022-04-26 16:45:28 +02:00
|
|
|
uint32_t read_mnist_labels_nb_images(char* filename);
|
2022-04-01 15:41:54 +02:00
|
|
|
int** read_image(unsigned int width, unsigned int height, FILE* ptr);
|
|
|
|
int* read_mnist_images_parameters(char* filename);
|
2022-04-22 15:03:21 +02:00
|
|
|
int* read_mnist_labels_parameters(char* filename);
|
2022-04-01 15:41:54 +02:00
|
|
|
int*** read_mnist_images(char* filename);
|
|
|
|
unsigned int* read_mnist_labels(char* filename);
|
|
|
|
|
|
|
|
#endif
|