tipe/src/mnist/mnist.h

15 lines
378 B
C
Raw Normal View History

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);
int** read_image(unsigned int width, unsigned int height, FILE* ptr);
int* read_mnist_images_parameters(char* filename);
int*** read_mnist_images(char* filename);
unsigned int* read_mnist_labels(char* filename);
#endif