Use to load data from file, given the path to the images file. More...
Public Member Functions | |
publicapi STATIC void | getDimensions (std::string trainFilepath, int *p_numExamples, int *p_numPlanes, int *p_imageSize) |
publicapi STATIC void | load (std::string imagesFilePath, float *images, int *labels, int startN, int numExamples) |
Use to load data from file, given the path to the images file.
Can handle mnist, norb and kgsgov2 formats for now Can be extended to other formats, as long as there is some reasonably quick way to determine the format correctly eg, a header, or based on the file extension
publicapi STATIC void GenericLoader::getDimensions | ( | std::string | trainFilepath, |
int * | p_numExamples, | ||
int * | p_numPlanes, | ||
int * | p_imageSize | ||
) |
publicapi STATIC void GenericLoader::load | ( | std::string | imagesFilePath, |
float * | images, | ||
int * | labels, | ||
int | startN, | ||
int | numExamples | ||
) |